Skip to content

Commit

Permalink
refactor: rename InjectedAggregator to InjectedWalletAggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jun 22, 2024
1 parent 89fe6d4 commit d54486c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/docs/docs/getting-started/connect-wallets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ Additional dependencies are required if you use any of be bellow wallet type.
```ts title="config.ts"
import type { Config } from "@reactive-dot/core";
import {
InjectedAggregator,
InjectedWalletAggregator,
WalletConnect,
} from "@reactive-dot/core/wallets.js";

const config: Config = {
// ...
wallets: [
new InjectedAggregator(),
new InjectedWalletAggregator(),
new WalletConnect({
projectId: "WALLET_CONNECT_PROJECT_ID",
providerOptions: {
Expand Down
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 @@ -71,7 +71,7 @@ declare module "@reactive-dot/core" {
```ts title="config.ts"
import { dot } from "@polkadot-api/descriptors";
import type { Config } from "@reactive-dot/core";
import { InjectedAggregator } from "@reactive-dot/core/wallets.js";
import { InjectedWalletAggregator } from "@reactive-dot/core/wallets.js";
import { chainSpec } from "polkadot-api/chains/polkadot";
import { getSmProvider } from "polkadot-api/sm-provider";
import { startFromWorker } from "polkadot-api/smoldot/from-worker";
Expand All @@ -89,7 +89,7 @@ const config: Config = {
provider: getSmProvider(smoldot.addChain({ chainSpec })),
},
},
wallets: [new InjectedAggregator()],
wallets: [new InjectedWalletAggregator()],
};

export default config;
Expand Down
4 changes: 2 additions & 2 deletions apps/example/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { kusama, polkadot, westend } from "@polkadot-api/descriptors";
import type { Config } from "@reactive-dot/core";
import {
InjectedAggregator,
InjectedWalletAggregator,
WalletConnect,
} from "@reactive-dot/core/wallets.js";
import { getSmProvider } from "polkadot-api/sm-provider";
Expand Down Expand Up @@ -41,7 +41,7 @@ const config: Config = {
},
},
wallets: [
new InjectedAggregator(),
new InjectedWalletAggregator(),
new WalletConnect({
projectId: "68f5b7e972a51cf379b127f51a791c34",
providerOptions: {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/wallets/aggregator/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as WalletAggregator } from "./aggregator.js";
export { default as InjectedAggregator } from "./injected.js";
export { default as InjectedWalletAggregator } from "./injected.js";
2 changes: 1 addition & 1 deletion packages/core/src/wallets/aggregator/injected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getInjectedExtensions } from "polkadot-api/pjs-signer";
import { BehaviorSubject } from "rxjs";
import { map } from "rxjs/operators";

export default class InjectedAggregator extends WalletAggregator {
export default class InjectedWalletAggregator extends WalletAggregator {
#storage: KeyedStorage | undefined;

constructor(options?: { storage?: KeyedStorage }) {
Expand Down

0 comments on commit d54486c

Please sign in to comment.