@ledgerhq/connect-kit 1.1.0-beta.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -1
- package/dist/umd/components/Modal/Modal.d.ts +0 -1
- package/dist/umd/index.d.ts +1 -4
- package/dist/umd/index.js +12 -12
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/lib/supportOptions.d.ts +1 -3
- package/dist/umd/support/EthereumProvider/EthereumProvider.d.ts +24 -21
- package/package.json +1 -1
@@ -1,9 +1,8 @@
|
|
1
|
-
import type { CoreTypes } from '@walletconnect/types';
|
2
1
|
import { WalletConnectProviderOptions } from "../providers/WalletConnectEvm";
|
3
2
|
import { WalletConnectLegacyProviderOptions } from '../providers/WalletConnectLegacy';
|
4
3
|
import { SupportedProviders } from "./provider";
|
5
4
|
type CheckSupportCommonOptions = {
|
6
|
-
|
5
|
+
walletConnectVersion?: number;
|
7
6
|
providerType: SupportedProviders;
|
8
7
|
};
|
9
8
|
export type CheckSupportWalletConnectProviderOptions = {
|
@@ -17,7 +16,6 @@ export type CheckSupportWalletConnectProviderOptions = {
|
|
17
16
|
rpcMap?: {
|
18
17
|
[chainId: string]: string;
|
19
18
|
};
|
20
|
-
metadata?: CoreTypes.Metadata;
|
21
19
|
};
|
22
20
|
export type CheckSupportWalletConnectLegacyProviderOptions = {
|
23
21
|
chainId?: number;
|
@@ -86,8 +86,8 @@ export declare class EthereumProvider implements IEthereumProvider {
|
|
86
86
|
accounts: string[];
|
87
87
|
signer: InstanceType<typeof UniversalProvider>;
|
88
88
|
chainId: number;
|
89
|
-
|
90
|
-
|
89
|
+
protected rpc: EthereumRpcConfig;
|
90
|
+
protected readonly STORAGE_KEY: string;
|
91
91
|
constructor();
|
92
92
|
static init(opts: EthereumProviderOptions): Promise<EthereumProvider>;
|
93
93
|
request<T = unknown>(args: RequestArguments): Promise<T>;
|
@@ -103,24 +103,27 @@ export declare class EthereumProvider implements IEthereumProvider {
|
|
103
103
|
off: IEthereumProviderEvents["off"];
|
104
104
|
get isWalletConnect(): boolean;
|
105
105
|
get session(): any;
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
106
|
+
protected registerEventListeners(): void;
|
107
|
+
protected setHttpProvider(chainId: number): void;
|
108
|
+
protected isCompatibleChainId(chainId: string): boolean;
|
109
|
+
protected formatChainId(chainId: number): string;
|
110
|
+
protected parseChainId(chainId: string): number;
|
111
|
+
protected setChainIds(chains: string[]): void;
|
112
|
+
protected setChainId(chain: string): void;
|
113
|
+
protected parseAccountId(account: string): {
|
114
|
+
chainId: string;
|
115
|
+
address: string;
|
116
|
+
};
|
117
|
+
protected setAccounts(accounts: string[]): void;
|
118
|
+
protected getRpcConfig(opts: EthereumProviderOptions): EthereumRpcConfig;
|
119
|
+
protected buildRpcMap(chains: number[], projectId: string): EthereumRpcMap;
|
120
|
+
protected initialize(opts: EthereumProviderOptions): Promise<void>;
|
121
|
+
protected loadConnectOpts(opts?: ConnectOps): void;
|
122
|
+
protected getRpcUrl(chainId: number, projectId?: string): string;
|
123
|
+
protected loadPersistedSession(): Promise<void>;
|
124
|
+
protected reset(): void;
|
125
|
+
protected persist(): void;
|
126
|
+
protected parseAccounts(payload: string | string[]): string[];
|
127
|
+
protected parseAccount: (payload: any) => string;
|
125
128
|
}
|
126
129
|
export default EthereumProvider;
|
package/package.json
CHANGED