@reown/appkit 1.7.0-alpha.0 → 1.7.0-rc.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.
- package/dist/esm/exports/basic-react.js +39 -0
- package/dist/esm/exports/basic-react.js.map +1 -0
- package/dist/esm/exports/basic-vue.js +45 -0
- package/dist/esm/exports/basic-vue.js.map +1 -0
- package/dist/esm/exports/constants.js +1 -1
- package/dist/esm/exports/constants.js.map +1 -1
- package/dist/esm/exports/index.js +2 -2
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/exports/react-basic.js +39 -0
- package/dist/esm/exports/react-basic.js.map +1 -0
- package/dist/esm/exports/react.js +4 -4
- package/dist/esm/exports/react.js.map +1 -1
- package/dist/esm/exports/vue copy.js +44 -0
- package/dist/esm/exports/vue copy.js.map +1 -0
- package/dist/esm/exports/vue-basic.js +45 -0
- package/dist/esm/exports/vue-basic.js.map +1 -0
- package/dist/esm/exports/vue.js +2 -2
- package/dist/esm/exports/vue.js.map +1 -1
- package/dist/esm/package.json +18 -8
- package/dist/esm/src/adapters/ChainAdapterBlueprint.js +1 -1
- package/dist/esm/src/adapters/ChainAdapterBlueprint.js.map +1 -1
- package/dist/esm/src/client/appkit-basic.js +9 -5
- package/dist/esm/src/client/appkit-basic.js.map +1 -1
- package/dist/esm/src/client/appkit.js +95 -91
- package/dist/esm/src/client/appkit.js.map +1 -1
- package/dist/esm/src/client/core.js +149 -107
- package/dist/esm/src/client/core.js.map +1 -1
- package/dist/esm/src/client.js +34 -27
- package/dist/esm/src/client.js.map +1 -1
- package/dist/esm/src/connectors/WalletConnectConnector.js +1 -1
- package/dist/esm/src/connectors/WalletConnectConnector.js.map +1 -1
- package/dist/esm/src/library/react/index.js +1 -1
- package/dist/esm/src/library/react/index.js.map +1 -1
- package/dist/esm/src/library/vue/index.js +2 -2
- package/dist/esm/src/library/vue/index.js.map +1 -1
- package/dist/esm/src/store/ProviderUtil.js +3 -0
- package/dist/esm/src/store/ProviderUtil.js.map +1 -1
- package/dist/esm/src/universal-adapter/client.js +1 -1
- package/dist/esm/src/universal-adapter/client.js.map +1 -1
- package/dist/esm/src/utils/HelpersUtil.js +1 -1
- package/dist/esm/src/utils/HelpersUtil.js.map +1 -1
- package/dist/esm/tests/client/adapter-management.test.js +7 -5
- package/dist/esm/tests/client/adapter-management.test.js.map +1 -1
- package/dist/esm/tests/client/appkit-basic.test.js +7 -6
- package/dist/esm/tests/client/appkit-basic.test.js.map +1 -1
- package/dist/esm/tests/client/balance.test.js +7 -5
- package/dist/esm/tests/client/balance.test.js.map +1 -1
- package/dist/esm/tests/client/connection.test.js +24 -21
- package/dist/esm/tests/client/connection.test.js.map +1 -1
- package/dist/esm/tests/client/initialization.test.js +7 -8
- package/dist/esm/tests/client/initialization.test.js.map +1 -1
- package/dist/esm/tests/client/listeners.test.js +46 -12
- package/dist/esm/tests/client/listeners.test.js.map +1 -1
- package/dist/esm/tests/client/public-methods.test.js +95 -10
- package/dist/esm/tests/client/public-methods.test.js.map +1 -1
- package/dist/esm/tests/client/universal-adapter.test.js +7 -5
- package/dist/esm/tests/client/universal-adapter.test.js.map +1 -1
- package/dist/esm/tests/client/walletconnect-events.test.js +11 -9
- package/dist/esm/tests/client/walletconnect-events.test.js.map +1 -1
- package/dist/esm/tests/connectors/WalletConnectConnector.test.js +1 -1
- package/dist/esm/tests/connectors/WalletConnectConnector.test.js.map +1 -1
- package/dist/esm/tests/mocks/Adapter.js +9 -6
- package/dist/esm/tests/mocks/Adapter.js.map +1 -1
- package/dist/esm/tests/mocks/LocalStorage.js +37 -0
- package/dist/esm/tests/mocks/LocalStorage.js.map +1 -0
- package/dist/esm/tests/siwe.test.js +1 -1
- package/dist/esm/tests/siwe.test.js.map +1 -1
- package/dist/esm/tests/test-utils.js +19 -12
- package/dist/esm/tests/test-utils.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/exports/basic-react.d.ts +16 -0
- package/dist/types/exports/basic-vue.d.ts +15 -0
- package/dist/types/exports/basic.d.ts +1 -1
- package/dist/types/exports/constants.d.ts +1 -1
- package/dist/types/exports/index.d.ts +2 -2
- package/dist/types/exports/react-basic.d.ts +16 -0
- package/dist/types/exports/react.d.ts +4 -4
- package/dist/types/exports/vue copy.d.ts +15 -0
- package/dist/types/exports/vue-basic.d.ts +15 -0
- package/dist/types/exports/vue.d.ts +3 -3
- package/dist/types/src/adapters/ChainAdapterBlueprint.d.ts +3 -3
- package/dist/types/src/adapters/ChainAdapterConnector.d.ts +1 -1
- package/dist/types/src/client/appkit-basic.d.ts +3 -3
- package/dist/types/src/client/appkit.d.ts +1 -2
- package/dist/types/src/client/core.d.ts +27 -11
- package/dist/types/src/client.d.ts +24 -28
- package/dist/types/src/library/react/index.d.ts +9 -9
- package/dist/types/src/library/vue/index.d.ts +8 -8
- package/dist/types/src/networks/bitcoin.d.ts +2 -2
- package/dist/types/src/networks/solana/solana.d.ts +1 -1
- package/dist/types/src/networks/solana/solanaDevnet.d.ts +1 -1
- package/dist/types/src/networks/solana/solanaTestnet.d.ts +1 -1
- package/dist/types/src/store/ProviderUtil.d.ts +2 -2
- package/dist/types/src/utils/TypesUtil.d.ts +1 -1
- package/dist/types/tests/mocks/Adapter.d.ts +3 -0
- package/dist/types/tests/mocks/LocalStorage.d.ts +12 -0
- package/dist/types/tests/mocks/Options.d.ts +1 -1
- package/dist/types/tests/test-utils.d.ts +0 -1
- package/package.json +25 -15
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type UseAppKitNetworkReturn } from '@reown/appkit-controllers';
|
|
2
|
+
import { AppKit } from '../src/client/appkit-basic.js';
|
|
3
|
+
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
4
|
+
export * from '../src/library/react/index.js';
|
|
5
|
+
export * from '../src/utils/index.js';
|
|
6
|
+
export type * from '@reown/appkit-controllers';
|
|
7
|
+
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
8
|
+
export { CoreHelperUtil, AccountController } from '@reown/appkit-controllers';
|
|
9
|
+
export declare let modal: AppKit | undefined;
|
|
10
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
11
|
+
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
12
|
+
export { AppKit };
|
|
13
|
+
export type { AppKitOptions };
|
|
14
|
+
export * from '../src/library/react/index.js';
|
|
15
|
+
export declare function useAppKitNetwork(): UseAppKitNetworkReturn;
|
|
16
|
+
export { useAppKitAccount } from '@reown/appkit-controllers/react';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import { type UseAppKitNetworkReturn } from '@reown/appkit-controllers';
|
|
3
|
+
import { AppKit } from '../src/client/appkit-basic.js';
|
|
4
|
+
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
5
|
+
export * from '../src/library/vue/index.js';
|
|
6
|
+
export * from '../src/utils/index.js';
|
|
7
|
+
export type * from '@reown/appkit-controllers';
|
|
8
|
+
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
9
|
+
export { CoreHelperUtil, AccountController } from '@reown/appkit-controllers';
|
|
10
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
11
|
+
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
12
|
+
export { AppKit };
|
|
13
|
+
export type { AppKitOptions };
|
|
14
|
+
export declare function useAppKitNetwork(): Ref<UseAppKitNetworkReturn>;
|
|
15
|
+
export * from '../src/library/vue/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppKit } from '../src/client/appkit-basic.js';
|
|
2
2
|
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
3
|
-
export type * from '@reown/appkit-
|
|
3
|
+
export type * from '@reown/appkit-controllers';
|
|
4
4
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
5
5
|
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
6
6
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "1.7.0-
|
|
1
|
+
export declare const PACKAGE_VERSION = "1.7.0-rc.0";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AppKit } from '../src/client/appkit.js';
|
|
2
2
|
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
3
3
|
export * from '../src/utils/index.js';
|
|
4
|
-
export type * from '@reown/appkit-
|
|
4
|
+
export type * from '@reown/appkit-controllers';
|
|
5
5
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
6
|
-
export { CoreHelperUtil, AccountController } from '@reown/appkit-
|
|
6
|
+
export { CoreHelperUtil, AccountController } from '@reown/appkit-controllers';
|
|
7
7
|
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
8
8
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
9
9
|
export { AppKit };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type UseAppKitNetworkReturn } from '@reown/appkit-controllers';
|
|
2
|
+
import { AppKit } from '../src/client/appkit-basic.js';
|
|
3
|
+
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
4
|
+
export * from '../src/library/react/index.js';
|
|
5
|
+
export * from '../src/utils/index.js';
|
|
6
|
+
export type * from '@reown/appkit-controllers';
|
|
7
|
+
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
8
|
+
export { CoreHelperUtil, AccountController } from '@reown/appkit-controllers';
|
|
9
|
+
export declare let modal: AppKit | undefined;
|
|
10
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
11
|
+
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
12
|
+
export { AppKit };
|
|
13
|
+
export type { AppKitOptions };
|
|
14
|
+
export * from '../src/library/react/index.js';
|
|
15
|
+
export declare function useAppKitNetwork(): UseAppKitNetworkReturn;
|
|
16
|
+
export { useAppKitAccount } from '@reown/appkit-controllers/react';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type UseAppKitNetworkReturn } from '@reown/appkit-
|
|
1
|
+
import { type UseAppKitNetworkReturn } from '@reown/appkit-controllers';
|
|
2
2
|
import { AppKit } from '../src/client/appkit.js';
|
|
3
3
|
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
4
4
|
export * from '../src/library/react/index.js';
|
|
5
5
|
export * from '../src/utils/index.js';
|
|
6
|
-
export type * from '@reown/appkit-
|
|
6
|
+
export type * from '@reown/appkit-controllers';
|
|
7
7
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
8
|
-
export { CoreHelperUtil, AccountController } from '@reown/appkit-
|
|
8
|
+
export { CoreHelperUtil, AccountController } from '@reown/appkit-controllers';
|
|
9
9
|
export declare let modal: AppKit | undefined;
|
|
10
10
|
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
11
11
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
@@ -13,4 +13,4 @@ export { AppKit };
|
|
|
13
13
|
export type { AppKitOptions };
|
|
14
14
|
export * from '../src/library/react/index.js';
|
|
15
15
|
export declare function useAppKitNetwork(): UseAppKitNetworkReturn;
|
|
16
|
-
export { useAppKitAccount } from '@reown/appkit-
|
|
16
|
+
export { useAppKitAccount } from '@reown/appkit-controllers/react';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import { type UseAppKitNetworkReturn } from '@reown/appkit-core';
|
|
3
|
+
import { AppKit } from '../src/client/appkit.js';
|
|
4
|
+
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
5
|
+
export * from '../src/library/vue/index.js';
|
|
6
|
+
export * from '../src/utils/index.js';
|
|
7
|
+
export type * from '@reown/appkit-core';
|
|
8
|
+
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
9
|
+
export { CoreHelperUtil, AccountController } from '@reown/appkit-core';
|
|
10
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
11
|
+
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
12
|
+
export { AppKit };
|
|
13
|
+
export type { AppKitOptions };
|
|
14
|
+
export declare function useAppKitNetwork(): Ref<UseAppKitNetworkReturn>;
|
|
15
|
+
export * from '../src/library/vue/index.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import { type UseAppKitNetworkReturn } from '@reown/appkit-controllers';
|
|
3
|
+
import { AppKit } from '../src/client/appkit-basic.js';
|
|
4
|
+
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
5
|
+
export * from '../src/library/vue/index.js';
|
|
6
|
+
export * from '../src/utils/index.js';
|
|
7
|
+
export type * from '@reown/appkit-controllers';
|
|
8
|
+
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
9
|
+
export { CoreHelperUtil, AccountController } from '@reown/appkit-controllers';
|
|
10
|
+
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
11
|
+
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
12
|
+
export { AppKit };
|
|
13
|
+
export type { AppKitOptions };
|
|
14
|
+
export declare function useAppKitNetwork(): Ref<UseAppKitNetworkReturn>;
|
|
15
|
+
export * from '../src/library/vue/index.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import { type UseAppKitNetworkReturn } from '@reown/appkit-
|
|
2
|
+
import { type UseAppKitNetworkReturn } from '@reown/appkit-controllers';
|
|
3
3
|
import { AppKit } from '../src/client/appkit.js';
|
|
4
4
|
import type { AppKitOptions } from '../src/utils/TypesUtil.js';
|
|
5
5
|
export * from '../src/library/vue/index.js';
|
|
6
6
|
export * from '../src/utils/index.js';
|
|
7
|
-
export type * from '@reown/appkit-
|
|
7
|
+
export type * from '@reown/appkit-controllers';
|
|
8
8
|
export type { CaipNetwork, CaipAddress, CaipNetworkId } from '@reown/appkit-common';
|
|
9
|
-
export { CoreHelperUtil, AccountController } from '@reown/appkit-
|
|
9
|
+
export { CoreHelperUtil, AccountController } from '@reown/appkit-controllers';
|
|
10
10
|
export type CreateAppKit = Omit<AppKitOptions, 'sdkType' | 'sdkVersion' | 'basic'>;
|
|
11
11
|
export declare function createAppKit(options: CreateAppKit): AppKit;
|
|
12
12
|
export { AppKit };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import UniversalProvider from '@walletconnect/universal-provider';
|
|
2
2
|
import { type CaipAddress, type CaipNetwork, type ChainNamespace } from '@reown/appkit-common';
|
|
3
|
-
import { type AccountControllerState, type AccountType, type Connector as AppKitConnector, type Tokens, type WriteContractArgs } from '@reown/appkit-
|
|
3
|
+
import { type AccountControllerState, type AccountType, type Connector as AppKitConnector, type Tokens, type WriteContractArgs } from '@reown/appkit-controllers';
|
|
4
4
|
import type { W3mFrameProvider } from '@reown/appkit-wallet';
|
|
5
5
|
import type { AppKitCore } from '../client/core.js';
|
|
6
6
|
import { WalletConnectConnector } from '../connectors/WalletConnectConnector.js';
|
|
@@ -216,8 +216,8 @@ export declare namespace AdapterBlueprint {
|
|
|
216
216
|
providerType?: AppKitConnector['type'];
|
|
217
217
|
};
|
|
218
218
|
type GetBalanceParams = {
|
|
219
|
-
address: string;
|
|
220
|
-
chainId: number | string;
|
|
219
|
+
address: string | undefined;
|
|
220
|
+
chainId: number | string | undefined;
|
|
221
221
|
caipNetwork?: CaipNetwork;
|
|
222
222
|
tokens?: Tokens;
|
|
223
223
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ChainNamespace } from '@reown/appkit-common';
|
|
2
|
-
import type { ChainAdapter } from '@reown/appkit-
|
|
3
|
-
import { AccountController } from '@reown/appkit-
|
|
2
|
+
import type { ChainAdapter } from '@reown/appkit-controllers';
|
|
3
|
+
import { AccountController } from '@reown/appkit-controllers';
|
|
4
4
|
import type { AdapterBlueprint } from '../adapters/ChainAdapterBlueprint.js';
|
|
5
5
|
import { AppKitCore } from './core.js';
|
|
6
6
|
declare global {
|
|
@@ -18,7 +18,7 @@ export declare class AppKit extends AppKitCore {
|
|
|
18
18
|
adapters?: ChainAdapter[];
|
|
19
19
|
activeChainNamespace?: ChainNamespace;
|
|
20
20
|
adapter?: ChainAdapter;
|
|
21
|
-
open(options
|
|
21
|
+
open(options?: OpenOptions): Promise<void>;
|
|
22
22
|
close(): Promise<void>;
|
|
23
23
|
protected injectModalUi(): Promise<void>;
|
|
24
24
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CaipNetwork, type ChainNamespace } from '@reown/appkit-common';
|
|
2
|
-
import { AccountController } from '@reown/appkit-
|
|
2
|
+
import { AccountController } from '@reown/appkit-controllers';
|
|
3
3
|
import { AppKitCore, type AppKitOptionsWithSdk } from './core.js';
|
|
4
4
|
declare global {
|
|
5
5
|
interface Window {
|
|
@@ -16,7 +16,6 @@ export declare class AppKit extends AppKitCore {
|
|
|
16
16
|
private createAuthProvider;
|
|
17
17
|
private createAuthProviderForAdapter;
|
|
18
18
|
protected initControllers(options: AppKitOptionsWithSdk): void;
|
|
19
|
-
protected syncNamespaceConnection(namespace: ChainNamespace): Promise<void>;
|
|
20
19
|
protected switchCaipNetwork(caipNetwork: CaipNetwork): Promise<void>;
|
|
21
20
|
protected initChainAdapter(namespace: ChainNamespace): Promise<void>;
|
|
22
21
|
protected syncConnectedWalletInfo(chainNamespace: ChainNamespace): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { SessionTypes } from '@walletconnect/types';
|
|
2
2
|
import UniversalProvider from '@walletconnect/universal-provider';
|
|
3
3
|
import type { AppKitNetwork, AppKitSdkVersion, CaipNetwork, CaipNetworkId, ChainNamespace, SdkVersion } from '@reown/appkit-common';
|
|
4
|
-
import type { ChainAdapter, ConnectMethod, ConnectedWalletInfo, ConnectionControllerClient, ConnectorType, EventsControllerState, Features, ModalControllerState, NetworkControllerClient, OptionsControllerState, PublicStateControllerState, RouterControllerState, SocialProvider, ThemeControllerState, UseAppKitAccountReturn, UseAppKitNetworkReturn, WalletFeature } from '@reown/appkit-
|
|
5
|
-
import { AccountController, AssetUtil, BlockchainApiController, ChainController, ConnectionController, ConnectorController, EnsController, OptionsController } from '@reown/appkit-
|
|
4
|
+
import type { ChainAdapter, ConnectMethod, ConnectedWalletInfo, ConnectionControllerClient, ConnectorType, EventsControllerState, Features, ModalControllerState, NetworkControllerClient, OptionsControllerState, PublicStateControllerState, RouterControllerState, SocialProvider, ThemeControllerState, UseAppKitAccountReturn, UseAppKitNetworkReturn, WalletFeature } from '@reown/appkit-controllers';
|
|
5
|
+
import { AccountController, AssetUtil, BlockchainApiController, ChainController, ConnectionController, ConnectorController, EnsController, OptionsController } from '@reown/appkit-controllers';
|
|
6
6
|
import type { W3mFrameTypes } from '@reown/appkit-wallet';
|
|
7
7
|
import type { AdapterBlueprint } from '../adapters/index.js';
|
|
8
8
|
import type { ProviderStoreUtilState } from '../store/ProviderUtil.js';
|
|
@@ -36,6 +36,7 @@ export declare abstract class AppKitCore {
|
|
|
36
36
|
protected initializeThemeController(options: AppKitOptions): void;
|
|
37
37
|
protected initializeChainController(options: AppKitOptions): void;
|
|
38
38
|
protected initializeConnectionController(options: AppKitOptions): void;
|
|
39
|
+
protected initializeConnectorController(): void;
|
|
39
40
|
protected initializeOptionsController(options: AppKitOptionsWithSdk): void;
|
|
40
41
|
protected getDefaultMetaData(): {
|
|
41
42
|
name: string;
|
|
@@ -52,7 +53,7 @@ export declare abstract class AppKitCore {
|
|
|
52
53
|
protected createClients(): void;
|
|
53
54
|
protected getApprovedCaipNetworksData(): {
|
|
54
55
|
supportsAllNetworks: boolean;
|
|
55
|
-
approvedCaipNetworkIds: (`
|
|
56
|
+
approvedCaipNetworkIds: (`eip155:${string}` | `eip155:${number}` | `solana:${string}` | `solana:${number}` | `polkadot:${string}` | `polkadot:${number}` | `bip122:${string}` | `bip122:${number}`)[];
|
|
56
57
|
};
|
|
57
58
|
protected switchCaipNetwork(caipNetwork: CaipNetwork): Promise<void>;
|
|
58
59
|
protected getChainsFromNamespaces(namespaces?: SessionTypes.Namespaces): CaipNetworkId[];
|
|
@@ -74,7 +75,8 @@ export declare abstract class AppKitCore {
|
|
|
74
75
|
protected syncAccount(params: Pick<AdapterBlueprint.ConnectResult, 'address' | 'chainId'> & {
|
|
75
76
|
chainNamespace: ChainNamespace;
|
|
76
77
|
}): Promise<void>;
|
|
77
|
-
|
|
78
|
+
private syncAccountInfo;
|
|
79
|
+
syncIdentity({ address, chainId, chainNamespace }: Pick<AdapterBlueprint.ConnectResult, 'address' | 'chainId'> & {
|
|
78
80
|
chainNamespace: ChainNamespace;
|
|
79
81
|
}): Promise<void>;
|
|
80
82
|
protected syncReownName(address: string, chainNamespace: ChainNamespace): Promise<void>;
|
|
@@ -84,7 +86,7 @@ export declare abstract class AppKitCore {
|
|
|
84
86
|
chainId: string | number | undefined;
|
|
85
87
|
chainNamespace: ChainNamespace;
|
|
86
88
|
}): Promise<void>;
|
|
87
|
-
|
|
89
|
+
updateNativeBalance(address: string, chainId: string | number, namespace: ChainNamespace): Promise<void>;
|
|
88
90
|
protected initializeUniversalAdapter(): Promise<void>;
|
|
89
91
|
protected listenWalletConnect(): void;
|
|
90
92
|
protected createUniversalProvider(): Promise<void> | undefined;
|
|
@@ -98,7 +100,7 @@ export declare abstract class AppKitCore {
|
|
|
98
100
|
getActiveChainNamespace: () => ChainNamespace | undefined;
|
|
99
101
|
setRequestedCaipNetworks: (typeof ChainController)['setRequestedCaipNetworks'];
|
|
100
102
|
getApprovedCaipNetworkIds: (typeof ChainController)['getAllApprovedCaipNetworkIds'];
|
|
101
|
-
getCaipAddress: (chainNamespace?: ChainNamespace) => `
|
|
103
|
+
getCaipAddress: (chainNamespace?: ChainNamespace) => `eip155:${string}:${string}` | `eip155:${number}:${string}` | `solana:${string}:${string}` | `solana:${number}:${string}` | `polkadot:${string}:${string}` | `polkadot:${number}:${string}` | `bip122:${string}:${string}` | `bip122:${number}:${string}` | undefined;
|
|
102
104
|
setClientId: (typeof BlockchainApiController)['setClientId'];
|
|
103
105
|
getProvider: <T>(namespace: ChainNamespace) => T | undefined;
|
|
104
106
|
getProviderType: (namespace: ChainNamespace) => ConnectorType | undefined;
|
|
@@ -110,6 +112,7 @@ export declare abstract class AppKitCore {
|
|
|
110
112
|
setUser: (typeof AccountController)['setUser'];
|
|
111
113
|
resetAccount: (typeof AccountController)['resetAccount'];
|
|
112
114
|
setCaipNetwork: (typeof ChainController)['setActiveCaipNetwork'];
|
|
115
|
+
setCaipNetworkOfNamespace: (caipNetwork: CaipNetwork, chainNamespace: ChainNamespace) => void;
|
|
113
116
|
setAllAccounts: (typeof AccountController)['setAllAccounts'];
|
|
114
117
|
setStatus: (typeof AccountController)['setStatus'];
|
|
115
118
|
getAddressByChainNamespace: (chainNamespace: ChainNamespace) => string | undefined;
|
|
@@ -121,22 +124,35 @@ export declare abstract class AppKitCore {
|
|
|
121
124
|
setConnectedWalletInfo: (typeof AccountController)['setConnectedWalletInfo'];
|
|
122
125
|
open(options?: OpenOptions): Promise<void>;
|
|
123
126
|
close(): Promise<void>;
|
|
124
|
-
setLoading(loading: ModalControllerState['loading']): void;
|
|
127
|
+
setLoading(loading: ModalControllerState['loading'], namespace?: ChainNamespace): void;
|
|
125
128
|
disconnect(): Promise<void>;
|
|
126
129
|
getError(): string;
|
|
127
130
|
getChainId(): string | number | undefined;
|
|
128
131
|
switchNetwork(appKitNetwork: AppKitNetwork): Promise<void>;
|
|
129
132
|
getWalletProvider(): unknown;
|
|
130
|
-
getWalletProviderType(): ConnectorType |
|
|
133
|
+
getWalletProviderType(): ConnectorType | undefined;
|
|
131
134
|
subscribeProviders(callback: (providers: ProviderStoreUtilState['providers']) => void): () => void;
|
|
132
|
-
getThemeMode(): import("@reown/appkit-
|
|
133
|
-
getThemeVariables(): import("@reown/appkit-
|
|
135
|
+
getThemeMode(): import("@reown/appkit-controllers").ThemeMode;
|
|
136
|
+
getThemeVariables(): import("@reown/appkit-controllers").ThemeVariables;
|
|
134
137
|
setThemeMode(themeMode: ThemeControllerState['themeMode']): void;
|
|
135
138
|
setTermsConditionsUrl(termsConditionsUrl: string): void;
|
|
136
139
|
setPrivacyPolicyUrl(privacyPolicyUrl: string): void;
|
|
137
140
|
setThemeVariables(themeVariables: ThemeControllerState['themeVariables']): void;
|
|
138
141
|
subscribeTheme(callback: (newState: ThemeControllerState) => void): () => void;
|
|
139
142
|
getWalletInfo(): ConnectedWalletInfo | undefined;
|
|
143
|
+
getAccount(namespace?: ChainNamespace): {
|
|
144
|
+
allAccounts: import("@reown/appkit-controllers").AccountType[];
|
|
145
|
+
caipAddress: `eip155:${string}:${string}` | `eip155:${number}:${string}` | `solana:${string}:${string}` | `solana:${number}:${string}` | `polkadot:${string}:${string}` | `polkadot:${number}:${string}` | `bip122:${string}:${string}` | `bip122:${number}:${string}` | undefined;
|
|
146
|
+
address: string | undefined;
|
|
147
|
+
isConnected: boolean;
|
|
148
|
+
status: "reconnecting" | "connected" | "disconnected" | "connecting" | undefined;
|
|
149
|
+
embeddedWalletInfo: {
|
|
150
|
+
user: import("@reown/appkit-controllers").User | undefined;
|
|
151
|
+
authProvider: SocialProvider | "email" | undefined;
|
|
152
|
+
accountType: W3mFrameTypes.AccountType | undefined;
|
|
153
|
+
isSmartAccountDeployed: boolean;
|
|
154
|
+
} | undefined;
|
|
155
|
+
} | undefined;
|
|
140
156
|
subscribeAccount(callback: (newState: UseAppKitAccountReturn) => void, namespace?: ChainNamespace): void;
|
|
141
157
|
subscribeNetwork(callback: (newState: Omit<UseAppKitNetworkReturn, 'switchNetwork'>) => void): () => void;
|
|
142
158
|
subscribeWalletInfo(callback: (newState?: ConnectedWalletInfo) => void): () => void;
|
|
@@ -149,7 +165,7 @@ export declare abstract class AppKitCore {
|
|
|
149
165
|
getEvent(): {
|
|
150
166
|
timestamp: number;
|
|
151
167
|
reportedErrors: Record<string, boolean>;
|
|
152
|
-
data: import("@reown/appkit-
|
|
168
|
+
data: import("@reown/appkit-controllers").Event;
|
|
153
169
|
};
|
|
154
170
|
subscribeEvents(callback: (newEvent: EventsControllerState) => void): () => void;
|
|
155
171
|
replace(route: RouterControllerState['view']): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import UniversalProvider from '@walletconnect/universal-provider';
|
|
2
2
|
import { type CaipNetwork, type ChainNamespace } from '@reown/appkit-common';
|
|
3
|
-
import { type ChainAdapter, type ConnectMethod, type ConnectedWalletInfo, type
|
|
4
|
-
import { AccountController, AssetUtil, BlockchainApiController, ChainController, ConnectionController, ConnectorController, EnsController, OptionsController } from '@reown/appkit-
|
|
3
|
+
import { type ChainAdapter, type ConnectMethod, type ConnectedWalletInfo, type EventsControllerState, type Features, type ModalControllerState, type OptionsControllerState, type PublicStateControllerState, type RouterControllerState, type SdkVersion, type SocialProvider, type ThemeControllerState, type UseAppKitAccountReturn, type UseAppKitNetworkReturn, type WalletFeature } from '@reown/appkit-controllers';
|
|
4
|
+
import { AccountController, AssetUtil, BlockchainApiController, ChainController, ConnectionController, ConnectorController, EnsController, OptionsController } from '@reown/appkit-controllers';
|
|
5
5
|
import { type W3mFrameTypes } from '@reown/appkit-wallet';
|
|
6
6
|
import type { AppKitNetwork } from '@reown/appkit/networks';
|
|
7
7
|
import type { AdapterBlueprint } from './adapters/ChainAdapterBlueprint.js';
|
|
@@ -51,49 +51,45 @@ export declare class AppKit {
|
|
|
51
51
|
close(): Promise<void>;
|
|
52
52
|
setLoading(loading: ModalControllerState['loading']): void;
|
|
53
53
|
getError(): string;
|
|
54
|
-
getChainId():
|
|
55
|
-
switchNetwork(appKitNetwork: AppKitNetwork):
|
|
56
|
-
getWalletProvider():
|
|
57
|
-
getWalletProviderType():
|
|
54
|
+
getChainId(): any;
|
|
55
|
+
switchNetwork(appKitNetwork: AppKitNetwork): void;
|
|
56
|
+
getWalletProvider(): any;
|
|
57
|
+
getWalletProviderType(): any;
|
|
58
58
|
subscribeProviders(callback: (providers: ProviderStoreUtilState['providers']) => void): () => void;
|
|
59
|
-
getThemeMode():
|
|
60
|
-
getThemeVariables():
|
|
59
|
+
getThemeMode(): any;
|
|
60
|
+
getThemeVariables(): any;
|
|
61
61
|
setThemeMode(themeMode: ThemeControllerState['themeMode']): void;
|
|
62
62
|
setTermsConditionsUrl(termsConditionsUrl: string): void;
|
|
63
63
|
setPrivacyPolicyUrl(privacyPolicyUrl: string): void;
|
|
64
64
|
setThemeVariables(themeVariables: ThemeControllerState['themeVariables']): void;
|
|
65
|
-
subscribeTheme(callback: (newState: ThemeControllerState) => void):
|
|
66
|
-
getWalletInfo():
|
|
65
|
+
subscribeTheme(callback: (newState: ThemeControllerState) => void): any;
|
|
66
|
+
getWalletInfo(): any;
|
|
67
67
|
subscribeAccount(callback: (newState: UseAppKitAccountReturn) => void, namespace?: ChainNamespace): void;
|
|
68
|
-
subscribeNetwork(callback: (newState: Omit<UseAppKitNetworkReturn, 'switchNetwork'>) => void):
|
|
69
|
-
subscribeWalletInfo(callback: (newState?: ConnectedWalletInfo) => void):
|
|
68
|
+
subscribeNetwork(callback: (newState: Omit<UseAppKitNetworkReturn, 'switchNetwork'>) => void): any;
|
|
69
|
+
subscribeWalletInfo(callback: (newState?: ConnectedWalletInfo) => void): any;
|
|
70
70
|
subscribeShouldUpdateToAddress(callback: (newState?: string) => void): void;
|
|
71
71
|
subscribeCaipNetworkChange(callback: (newState?: CaipNetwork) => void): void;
|
|
72
|
-
getState():
|
|
73
|
-
subscribeState(callback: (newState: PublicStateControllerState) => void):
|
|
72
|
+
getState(): any;
|
|
73
|
+
subscribeState(callback: (newState: PublicStateControllerState) => void): any;
|
|
74
74
|
showErrorMessage(message: string): void;
|
|
75
75
|
showSuccessMessage(message: string): void;
|
|
76
|
-
getEvent():
|
|
77
|
-
|
|
78
|
-
reportedErrors: Record<string, boolean>;
|
|
79
|
-
data: import("@reown/appkit-core").Event;
|
|
80
|
-
};
|
|
81
|
-
subscribeEvents(callback: (newEvent: EventsControllerState) => void): () => void;
|
|
76
|
+
getEvent(): any;
|
|
77
|
+
subscribeEvents(callback: (newEvent: EventsControllerState) => void): any;
|
|
82
78
|
replace(route: RouterControllerState['view']): void;
|
|
83
79
|
redirect(route: RouterControllerState['view']): void;
|
|
84
80
|
popTransactionStack(cancel?: boolean): void;
|
|
85
|
-
isOpen():
|
|
81
|
+
isOpen(): any;
|
|
86
82
|
isTransactionStackEmpty(): boolean;
|
|
87
83
|
setStatus: (typeof AccountController)['setStatus'];
|
|
88
84
|
getIsConnectedState: () => boolean;
|
|
89
85
|
setAllAccounts: (typeof AccountController)['setAllAccounts'];
|
|
90
86
|
addAddressLabel: (typeof AccountController)['addAddressLabel'];
|
|
91
87
|
removeAddressLabel: (typeof AccountController)['removeAddressLabel'];
|
|
92
|
-
getCaipAddress: (chainNamespace?: ChainNamespace) =>
|
|
93
|
-
getAddressByChainNamespace: (chainNamespace: ChainNamespace) =>
|
|
94
|
-
getAddress: (chainNamespace?: ChainNamespace) =>
|
|
88
|
+
getCaipAddress: (chainNamespace?: ChainNamespace) => any;
|
|
89
|
+
getAddressByChainNamespace: (chainNamespace: ChainNamespace) => any;
|
|
90
|
+
getAddress: (chainNamespace?: ChainNamespace) => any;
|
|
95
91
|
getProvider: <T>(namespace: ChainNamespace) => T | undefined;
|
|
96
|
-
getProviderType: (namespace: ChainNamespace) =>
|
|
92
|
+
getProviderType: (namespace: ChainNamespace) => any;
|
|
97
93
|
getPreferredAccountType: () => W3mFrameTypes.AccountType;
|
|
98
94
|
setCaipAddress: (typeof AccountController)['setCaipAddress'];
|
|
99
95
|
setBalance: (typeof AccountController)['setBalance'];
|
|
@@ -102,10 +98,10 @@ export declare class AppKit {
|
|
|
102
98
|
setUser: (typeof AccountController)['setUser'];
|
|
103
99
|
resetAccount: (typeof AccountController)['resetAccount'];
|
|
104
100
|
setCaipNetwork: (typeof ChainController)['setActiveCaipNetwork'];
|
|
105
|
-
getCaipNetwork: (chainNamespace?: ChainNamespace) =>
|
|
101
|
+
getCaipNetwork: (chainNamespace?: ChainNamespace) => any;
|
|
106
102
|
getCaipNetworkId: <T extends number | string>() => T | undefined;
|
|
107
|
-
getCaipNetworks: (namespace: ChainNamespace) =>
|
|
108
|
-
getActiveChainNamespace: () =>
|
|
103
|
+
getCaipNetworks: (namespace: ChainNamespace) => any;
|
|
104
|
+
getActiveChainNamespace: () => any;
|
|
109
105
|
setRequestedCaipNetworks: (typeof ChainController)['setRequestedCaipNetworks'];
|
|
110
106
|
getApprovedCaipNetworkIds: (typeof ChainController)['getAllApprovedCaipNetworkIds'];
|
|
111
107
|
setApprovedCaipNetworksData: (typeof ChainController)['setApprovedCaipNetworksData'];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ChainNamespace } from '@reown/appkit-common';
|
|
2
2
|
import type { AppKitAccountButton, AppKitButton, AppKitConnectButton, AppKitNetworkButton, W3mAccountButton, W3mButton, W3mConnectButton, W3mNetworkButton } from '@reown/appkit-scaffold-ui';
|
|
3
|
-
import type { AppKit } from '../../../src/client/
|
|
3
|
+
import type { AppKitCore as AppKit } from '../../../src/client/core.js';
|
|
4
4
|
import type { AppKitOptions } from '../../utils/TypesUtil.js';
|
|
5
5
|
type OpenOptions = {
|
|
6
|
-
view
|
|
6
|
+
view?: 'Account' | 'Connect' | 'Networks' | 'ApproveTransaction' | 'OnRampProviders' | 'Swap' | 'WhatIsAWallet' | 'WhatIsANetwork' | 'AllWallets' | 'WalletSend';
|
|
7
7
|
uri?: string;
|
|
8
8
|
namespace?: ChainNamespace;
|
|
9
9
|
};
|
|
@@ -12,7 +12,7 @@ type ThemeVariablesOptions = AppKitOptions['themeVariables'];
|
|
|
12
12
|
declare module 'react' {
|
|
13
13
|
namespace JSX {
|
|
14
14
|
interface IntrinsicElements {
|
|
15
|
-
'appkit-button': Pick<AppKitButton, 'size' | 'label' | 'loadingLabel' | 'disabled' | 'balance'>;
|
|
15
|
+
'appkit-button': Pick<AppKitButton, 'size' | 'label' | 'loadingLabel' | 'disabled' | 'balance' | 'namespace'>;
|
|
16
16
|
'appkit-connect-button': Pick<AppKitConnectButton, 'size' | 'label' | 'loadingLabel'>;
|
|
17
17
|
'appkit-account-button': Pick<AppKitAccountButton, 'disabled' | 'balance'>;
|
|
18
18
|
'appkit-network-button': Pick<AppKitNetworkButton, 'disabled'>;
|
|
@@ -24,14 +24,14 @@ declare module 'react' {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
export declare function getAppKit(appKit: AppKit): void;
|
|
27
|
-
export * from '@reown/appkit-
|
|
27
|
+
export * from '@reown/appkit-controllers/react';
|
|
28
28
|
export declare function useAppKitProvider<T>(chainNamespace: ChainNamespace): {
|
|
29
29
|
walletProvider: T;
|
|
30
|
-
walletProviderType: import("@reown/appkit-
|
|
30
|
+
walletProviderType: import("@reown/appkit-controllers").ConnectorType | undefined;
|
|
31
31
|
};
|
|
32
32
|
export declare function useAppKitTheme(): {
|
|
33
33
|
themeMode: "dark" | "light";
|
|
34
|
-
themeVariables: import("@reown/appkit-
|
|
34
|
+
themeVariables: import("@reown/appkit-controllers").ThemeVariables;
|
|
35
35
|
setThemeMode: (themeMode: ThemeModeOptions) => void;
|
|
36
36
|
setThemeVariables: (themeVariables: ThemeVariablesOptions) => void;
|
|
37
37
|
};
|
|
@@ -40,11 +40,11 @@ export declare function useAppKit(): {
|
|
|
40
40
|
close: () => Promise<void>;
|
|
41
41
|
};
|
|
42
42
|
export declare function useWalletInfo(): {
|
|
43
|
-
walletInfo: import("@reown/appkit-
|
|
43
|
+
walletInfo: import("@reown/appkit-controllers").ConnectedWalletInfo | undefined;
|
|
44
44
|
};
|
|
45
|
-
export declare function useAppKitState(): import("@reown/appkit-
|
|
45
|
+
export declare function useAppKitState(): import("@reown/appkit-controllers").PublicStateControllerState;
|
|
46
46
|
export declare function useAppKitEvents(): {
|
|
47
47
|
timestamp: number;
|
|
48
48
|
reportedErrors: Record<string, boolean>;
|
|
49
|
-
data: import("@reown/appkit-
|
|
49
|
+
data: import("@reown/appkit-controllers").Event;
|
|
50
50
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { ChainNamespace } from '@reown/appkit-common';
|
|
2
|
-
import { type Event } from '@reown/appkit-
|
|
2
|
+
import { type Event } from '@reown/appkit-controllers';
|
|
3
3
|
import type { AppKitAccountButton, AppKitButton, AppKitConnectButton, AppKitNetworkButton, W3mAccountButton, W3mButton, W3mConnectButton, W3mNetworkButton } from '@reown/appkit-scaffold-ui';
|
|
4
|
-
import type { AppKit } from '../../../src/client/
|
|
4
|
+
import type { AppKitCore as AppKit } from '../../../src/client/core.js';
|
|
5
5
|
import type { AppKitOptions } from '../../utils/TypesUtil.js';
|
|
6
6
|
export interface AppKitEvent {
|
|
7
7
|
timestamp: number;
|
|
8
8
|
data: Event;
|
|
9
9
|
}
|
|
10
10
|
type OpenOptions = {
|
|
11
|
-
view
|
|
11
|
+
view?: 'Account' | 'Connect' | 'Networks' | 'ApproveTransaction' | 'OnRampProviders' | 'Swap' | 'WhatIsAWallet' | 'WhatIsANetwork' | 'AllWallets' | 'WalletSend';
|
|
12
12
|
uri?: string;
|
|
13
13
|
namespace?: ChainNamespace;
|
|
14
14
|
};
|
|
@@ -16,7 +16,7 @@ type ThemeModeOptions = AppKitOptions['themeMode'];
|
|
|
16
16
|
type ThemeVariablesOptions = AppKitOptions['themeVariables'];
|
|
17
17
|
declare module 'vue' {
|
|
18
18
|
interface ComponentCustomProperties {
|
|
19
|
-
AppKitButton: Pick<AppKitButton, 'size' | 'label' | 'loadingLabel' | 'disabled' | 'balance'>;
|
|
19
|
+
AppKitButton: Pick<AppKitButton, 'size' | 'label' | 'loadingLabel' | 'disabled' | 'balance' | 'namespace'>;
|
|
20
20
|
AppKitConnectButton: Pick<AppKitConnectButton, 'size' | 'label' | 'loadingLabel'>;
|
|
21
21
|
AppKitAccountButton: Pick<AppKitAccountButton, 'disabled' | 'balance'>;
|
|
22
22
|
AppKitNetworkButton: Pick<AppKitNetworkButton, 'disabled'>;
|
|
@@ -27,15 +27,15 @@ declare module 'vue' {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare function getAppKit(appKit: AppKit): void;
|
|
30
|
-
export * from '@reown/appkit-
|
|
30
|
+
export * from '@reown/appkit-controllers/vue';
|
|
31
31
|
export declare function useAppKitProvider<T>(chainNamespace: ChainNamespace): {
|
|
32
32
|
walletProvider: T | undefined;
|
|
33
|
-
walletProviderType: import("@reown/appkit-
|
|
33
|
+
walletProviderType: import("@reown/appkit-controllers").ConnectorType | undefined;
|
|
34
34
|
};
|
|
35
35
|
export declare function useAppKitTheme(): {
|
|
36
36
|
setThemeMode: (themeMode: ThemeModeOptions) => void;
|
|
37
37
|
setThemeVariables: (themeVariables: ThemeVariablesOptions) => void;
|
|
38
|
-
themeMode: import("@reown/appkit-
|
|
38
|
+
themeMode: import("@reown/appkit-controllers").ThemeMode;
|
|
39
39
|
themeVariables: {
|
|
40
40
|
'--w3m-font-family'?: string | undefined;
|
|
41
41
|
'--w3m-accent'?: string | undefined;
|
|
@@ -61,6 +61,6 @@ export declare function useWalletInfo(): {
|
|
|
61
61
|
};
|
|
62
62
|
export declare function useAppKitState(): {
|
|
63
63
|
open: boolean;
|
|
64
|
-
selectedNetworkId: `
|
|
64
|
+
selectedNetworkId: `eip155:${string}` | `eip155:${number}` | `solana:${string}` | `solana:${number}` | `polkadot:${string}` | `polkadot:${number}` | `bip122:${string}` | `bip122:${number}` | undefined;
|
|
65
65
|
};
|
|
66
66
|
export declare function useAppKitEvents(): AppKitEvent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const bitcoin: {
|
|
2
|
+
name: "Bitcoin";
|
|
2
3
|
blockExplorers?: {
|
|
3
4
|
[key: string]: {
|
|
4
5
|
name: string;
|
|
@@ -20,7 +21,6 @@ export declare const bitcoin: {
|
|
|
20
21
|
multicall3?: import("viem").ChainContract | undefined;
|
|
21
22
|
universalSignatureVerifier?: import("viem").ChainContract | undefined;
|
|
22
23
|
} | undefined;
|
|
23
|
-
name: "Bitcoin";
|
|
24
24
|
nativeCurrency: {
|
|
25
25
|
readonly name: "Bitcoin";
|
|
26
26
|
readonly symbol: "BTC";
|
|
@@ -46,6 +46,7 @@ export declare const bitcoin: {
|
|
|
46
46
|
} | undefined;
|
|
47
47
|
};
|
|
48
48
|
export declare const bitcoinTestnet: {
|
|
49
|
+
name: "Bitcoin Testnet";
|
|
49
50
|
blockExplorers?: {
|
|
50
51
|
[key: string]: {
|
|
51
52
|
name: string;
|
|
@@ -67,7 +68,6 @@ export declare const bitcoinTestnet: {
|
|
|
67
68
|
multicall3?: import("viem").ChainContract | undefined;
|
|
68
69
|
universalSignatureVerifier?: import("viem").ChainContract | undefined;
|
|
69
70
|
} | undefined;
|
|
70
|
-
name: "Bitcoin Testnet";
|
|
71
71
|
nativeCurrency: {
|
|
72
72
|
readonly name: "Bitcoin";
|
|
73
73
|
readonly symbol: "BTC";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const solana: {
|
|
2
|
+
name: "Solana";
|
|
2
3
|
blockExplorers: {
|
|
3
4
|
readonly default: {
|
|
4
5
|
readonly name: "Solscan";
|
|
@@ -14,7 +15,6 @@ export declare const solana: {
|
|
|
14
15
|
multicall3?: import("viem").ChainContract | undefined;
|
|
15
16
|
universalSignatureVerifier?: import("viem").ChainContract | undefined;
|
|
16
17
|
} | undefined;
|
|
17
|
-
name: "Solana";
|
|
18
18
|
nativeCurrency: {
|
|
19
19
|
readonly name: "Solana";
|
|
20
20
|
readonly symbol: "SOL";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const solanaDevnet: {
|
|
2
|
+
name: "Solana Devnet";
|
|
2
3
|
blockExplorers: {
|
|
3
4
|
readonly default: {
|
|
4
5
|
readonly name: "Solscan";
|
|
@@ -14,7 +15,6 @@ export declare const solanaDevnet: {
|
|
|
14
15
|
multicall3?: import("viem").ChainContract | undefined;
|
|
15
16
|
universalSignatureVerifier?: import("viem").ChainContract | undefined;
|
|
16
17
|
} | undefined;
|
|
17
|
-
name: "Solana Devnet";
|
|
18
18
|
nativeCurrency: {
|
|
19
19
|
readonly name: "Solana";
|
|
20
20
|
readonly symbol: "SOL";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const solanaTestnet: {
|
|
2
|
+
name: "Solana Testnet";
|
|
2
3
|
blockExplorers: {
|
|
3
4
|
readonly default: {
|
|
4
5
|
readonly name: "Solscan";
|
|
@@ -14,7 +15,6 @@ export declare const solanaTestnet: {
|
|
|
14
15
|
multicall3?: import("viem").ChainContract | undefined;
|
|
15
16
|
universalSignatureVerifier?: import("viem").ChainContract | undefined;
|
|
16
17
|
} | undefined;
|
|
17
|
-
name: "Solana Testnet";
|
|
18
18
|
nativeCurrency: {
|
|
19
19
|
readonly name: "Solana";
|
|
20
20
|
readonly symbol: "SOL";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type UniversalProvider from '@walletconnect/universal-provider';
|
|
2
2
|
import type { ChainNamespace } from '@reown/appkit-common';
|
|
3
|
-
import type { ConnectorType } from '@reown/appkit-
|
|
3
|
+
import type { ConnectorType } from '@reown/appkit-controllers';
|
|
4
4
|
type StateKey = keyof ProviderStoreUtilState;
|
|
5
5
|
export interface ProviderStoreUtilState {
|
|
6
6
|
providers: Record<ChainNamespace, UniversalProvider | unknown | undefined>;
|
|
@@ -14,7 +14,7 @@ export declare const ProviderUtil: {
|
|
|
14
14
|
setProvider<T = UniversalProvider>(chainNamespace: ChainNamespace, provider: T): void;
|
|
15
15
|
getProvider<T = UniversalProvider>(chainNamespace: ChainNamespace): T | undefined;
|
|
16
16
|
setProviderId(chainNamespace: ChainNamespace, providerId: ConnectorType): void;
|
|
17
|
-
getProviderId(chainNamespace: ChainNamespace): ConnectorType | undefined;
|
|
17
|
+
getProviderId(chainNamespace: ChainNamespace | undefined): ConnectorType | undefined;
|
|
18
18
|
reset(): void;
|
|
19
19
|
resetChain(chainNamespace: ChainNamespace): void;
|
|
20
20
|
};
|