@reown/appkit-adapter-wagmi 0.0.4 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,10 +9,10 @@ export interface AdapterOptions<C extends Config> extends Pick<AppKitOptions, 's
9
9
  wagmiConfig: C;
10
10
  defaultNetwork?: Chain;
11
11
  }
12
- interface Web3ModalState extends PublicStateControllerState {
12
+ interface AppKitState extends PublicStateControllerState {
13
13
  selectedNetworkId: number | undefined;
14
14
  }
15
- export declare class EVMWagmiClient implements ChainAdapter {
15
+ export declare class WagmiAdapter implements ChainAdapter {
16
16
  private appKit;
17
17
  private createConfigParams?;
18
18
  options: AppKitOptions | undefined;
@@ -24,20 +24,19 @@ export declare class EVMWagmiClient implements ChainAdapter {
24
24
  connectionControllerClient?: ConnectionControllerClient;
25
25
  defaultCaipNetwork: CaipNetwork | undefined;
26
26
  tokens: import("@reown/appkit-core").Tokens | undefined;
27
- getCaipDefaultNetwork: CaipNetwork | undefined;
28
- siweControllerClient: import("@reown/appkit-siwe").Web3ModalSIWEClient | undefined;
27
+ siweControllerClient: import("@reown/appkit-siwe").AppKitSIWEClient | undefined;
29
28
  adapterType: AdapterType;
30
29
  constructor(configParams: Partial<CreateConfigParameters> & {
31
- caipNetworks: CaipNetwork[];
30
+ networks: CaipNetwork[];
32
31
  projectId: string;
33
32
  });
34
33
  private setCustomConnectors;
35
34
  construct(appKit: AppKit, options: AppKitOptions): void;
36
- subscribeState(callback: (state: Web3ModalState) => void): (() => void) | undefined;
35
+ subscribeState(callback: (state: AppKitState) => void): (() => void) | undefined;
37
36
  private syncRequestedNetworks;
38
37
  private syncAccount;
39
38
  private syncNetwork;
40
- private syncWalletConnectName;
39
+ private syncReownName;
41
40
  private syncProfile;
42
41
  private syncBalance;
43
42
  private syncConnectedWalletInfo;
@@ -1,5 +1,5 @@
1
1
  import '@reown/appkit-polyfills';
2
- export { EVMWagmiClient } from './client.js';
2
+ export { WagmiAdapter } from './client.js';
3
3
  export type { AdapterOptions } from './client.js';
4
4
  export { authConnector } from './connectors/AuthConnector.js';
5
5
  export { convertToAppKitChains } from './utils/helpers.js';
@@ -1,10 +1,9 @@
1
1
  import { type CaipNetwork } from '@reown/appkit-common';
2
2
  import type { Chain } from '@wagmi/core/chains';
3
3
  import type { Connector } from '@wagmi/core';
4
- export declare function getCaipDefaultNetwork(chain?: CaipNetwork): CaipNetwork | undefined;
5
4
  export declare function getWalletConnectCaipNetworks(connector?: Connector): Promise<{
6
- supportsAllNetworks: boolean;
7
5
  approvedCaipNetworkIds: (`eip155:${string}` | `eip155:${number}` | `solana:${string}` | `solana:${number}` | `polkadot:${string}` | `polkadot:${number}`)[];
6
+ supportsAllNetworks: boolean;
8
7
  }>;
9
8
  export declare function getEmailCaipNetworks(): {
10
9
  supportsAllNetworks: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-adapter-wagmi",
3
- "version": "0.0.4",
3
+ "version": "1.0.0",
4
4
  "type": "module",
5
5
  "main": "./dist/esm/src/index.js",
6
6
  "types": "./dist/types/src/index.d.ts",
@@ -12,15 +12,15 @@
12
12
  "@walletconnect/utils": "2.16.1",
13
13
  "@walletconnect/universal-provider": "2.16.1",
14
14
  "valtio": "1.11.2",
15
- "@reown/appkit": "0.0.4",
16
- "@reown/appkit-common": "0.0.4",
17
- "@reown/appkit-core": "0.0.4",
18
- "@reown/appkit-polyfills": "0.0.4",
19
- "@reown/appkit-scaffold-ui": "0.0.4",
20
- "@reown/appkit-utils": "0.0.4",
21
- "@reown/appkit-siwe": "0.0.4",
22
- "@reown/appkit-ui": "0.0.4",
23
- "@reown/appkit-wallet": "0.0.4"
15
+ "@reown/appkit": "1.0.0",
16
+ "@reown/appkit-common": "1.0.0",
17
+ "@reown/appkit-core": "1.0.0",
18
+ "@reown/appkit-polyfills": "1.0.0",
19
+ "@reown/appkit-scaffold-ui": "1.0.0",
20
+ "@reown/appkit-utils": "1.0.0",
21
+ "@reown/appkit-siwe": "1.0.0",
22
+ "@reown/appkit-ui": "1.0.0",
23
+ "@reown/appkit-wallet": "1.0.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@coinbase/wallet-sdk": "4.0.3",
@@ -32,18 +32,18 @@
32
32
  "@walletconnect/types": "2.16.1",
33
33
  "@walletconnect/universal-provider": "2.16.1",
34
34
  "viem": "2.21.4",
35
- "vitest": "2.0.3",
35
+ "vitest": "2.0.5",
36
36
  "wagmi": "2.12.9"
37
37
  },
38
- "author": "reown <reown.com>",
38
+ "author": "Reown <support@reown.com> (https://reown.com)",
39
39
  "license": "Apache-2.0",
40
- "homepage": "https://github.com/web3modal/web3modal",
40
+ "homepage": "https://github.com/reown-com/appkit",
41
41
  "repository": {
42
42
  "type": "git",
43
43
  "url": "git+https://github.com/WalletConnect/shadow-appkit.git"
44
44
  },
45
45
  "bugs": {
46
- "url": "https://github.com/web3modal/web3modal/issues"
46
+ "url": "https://github.com/reown-com/appkit/issues"
47
47
  },
48
48
  "scripts": {
49
49
  "build:clean": "rm -rf dist",
package/readme.md CHANGED
@@ -1,10 +1,10 @@
1
- #### 📚 [Documentation](https://docs.walletconnect.com/2.0/web3modal/about)
1
+ #### 📚 [Documentation](https://docs.walletconnect.com/2.0/appkit/about)
2
2
 
3
- #### 🔗 [Website](https://web3modal.com)
3
+ #### 🔗 [Website](https://reown.com/appkit)
4
4
 
5
- # Web3Modal
5
+ # AppKit
6
6
 
7
- Your on-ramp to web3 multichain. Web3Modal is a versatile library that makes it super easy to connect users with your Dapp and start interacting with the blockchain.
7
+ Your on-ramp to web3 multichain. AppKit is a versatile library that makes it super easy to connect users with your Dapp and start interacting with the blockchain.
8
8
 
9
9
  <p align="center">
10
10
  <img src="./.github/assets/header.png" alt="" border="0">