Skip to content

Commit

Permalink
fix(docs): outdated info (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien authored Oct 7, 2024
1 parent 91102e4 commit 07b0fab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/docs/docs/getting-started/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ export const config = {

```ts title="config.ts"
import { dot } from "@polkadot-api/descriptors";
import { WebSocketProvider } from "@polkadot-api/ws-provider/web";
import { getWsProvider } from "@polkadot-api/ws-provider/web";
import type { Config } from "@reactive-dot/core";
import { InjectedWalletAggregator } from "@reactive-dot/core/wallets.js";

export const config = {
chains: {
polkadot: {
descriptor: dot,
provider: WebSocketProvider("wss://polkadot-rpc.publicnode.com"),
provider: getWsProvider("wss://polkadot-rpc.publicnode.com"),
},
},
wallets: [new InjectedWalletAggregator()],
Expand Down
9 changes: 3 additions & 6 deletions apps/docs/docs/guides/multichain.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ npx papi
### Add type information

```ts title="reactive-dot.d.ts"
import type { dot, ksm, wnd } from "@polkadot-api/descriptors";
import type { config } from "./config";
import type { InferChains } from "@reactive-dot/core";

declare module "@reactive-dot/core" {
export interface Chains {
polkadot: typeof dot;
kusama: typeof ksm;
westend: typeof wnd;
}
export interface Chains extends InferChains<typeof config> {}
}
```

Expand Down

0 comments on commit 07b0fab

Please sign in to comment.