@luno-kit/core 0.0.6 → 0.0.7
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/chains/index.cjs +2 -1
- package/dist/chains/index.cjs.map +1 -1
- package/dist/chains/index.d.cts +11 -1
- package/dist/chains/index.d.ts +11 -1
- package/dist/chains/index.js +2 -1
- package/dist/chains/index.js.map +1 -1
- package/dist/chunk-242IPEOF.js +3 -0
- package/dist/chunk-242IPEOF.js.map +1 -0
- package/dist/chunk-YHPF74FG.cjs +3 -0
- package/dist/chunk-YHPF74FG.cjs.map +1 -0
- package/dist/connector-6qzOSWQP.d.ts +48 -0
- package/dist/connector-BjPpWk_D.d.cts +48 -0
- package/dist/connectors/index.cjs +2 -1
- package/dist/connectors/index.cjs.map +1 -1
- package/dist/connectors/index.d.cts +169 -4
- package/dist/connectors/index.d.ts +169 -4
- package/dist/connectors/index.js +2 -1
- package/dist/connectors/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -42
- package/dist/index.d.ts +9 -42
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.cts +44 -0
- package/dist/types/index.d.ts +44 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +7 -1
- package/dist/chunk-GFMVMUPH.js +0 -3
- package/dist/chunk-GFMVMUPH.js.map +0 -1
- package/dist/chunk-JOIV5HSZ.cjs +0 -3
- package/dist/chunk-JOIV5HSZ.cjs.map +0 -1
- package/dist/chunk-LXQJABLC.js +0 -2
- package/dist/chunk-LXQJABLC.js.map +0 -1
- package/dist/chunk-MFLU4CFP.cjs +0 -3
- package/dist/chunk-MFLU4CFP.cjs.map +0 -1
- package/dist/chunk-MYEWIINX.cjs +0 -2
- package/dist/chunk-MYEWIINX.cjs.map +0 -1
- package/dist/chunk-VGX4US5T.js +0 -3
- package/dist/chunk-VGX4US5T.js.map +0 -1
- package/dist/index-Cxsn9zGL.d.ts +0 -202
- package/dist/index-PqPDUdlJ.d.cts +0 -202
package/dist/index-Cxsn9zGL.d.ts
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { C as Chain } from './chain-9vBVQoCB.js';
|
|
2
|
-
import { A as Account } from './account-DElDu01m.js';
|
|
3
|
-
import { EventEmitter } from 'eventemitter3';
|
|
4
|
-
import { InjectedSigner } from 'dedot/types';
|
|
5
|
-
import { Metadata } from '@walletconnect/universal-provider';
|
|
6
|
-
|
|
7
|
-
interface Signer extends InjectedSigner {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface ConnectorLinks {
|
|
11
|
-
browserExtension?: string;
|
|
12
|
-
deepLink?: string;
|
|
13
|
-
}
|
|
14
|
-
interface Connector extends EventEmitter {
|
|
15
|
-
readonly id: string;
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly icon: string;
|
|
18
|
-
readonly links: ConnectorLinks;
|
|
19
|
-
isAvailable(): Promise<boolean>;
|
|
20
|
-
isInstalled: () => boolean;
|
|
21
|
-
connect(appName: string, chains?: Chain[], targetChainId?: string): Promise<Array<Account>>;
|
|
22
|
-
disconnect(): Promise<void>;
|
|
23
|
-
getAccounts(): Promise<Array<Account>>;
|
|
24
|
-
getSigner(): Promise<Signer | undefined>;
|
|
25
|
-
signMessage(message: string, address: string, chainId?: string): Promise<string | undefined>;
|
|
26
|
-
hasConnectionUri(): boolean;
|
|
27
|
-
getConnectionUri(): Promise<string | undefined>;
|
|
28
|
-
updateAccountsForChain(chainId: string): Promise<Account[]>;
|
|
29
|
-
on(event: 'connect', listener: (accounts: Account[]) => void): this;
|
|
30
|
-
on(event: 'disconnect', listener: () => void): this;
|
|
31
|
-
on(event: 'accountsChanged', listener: (accounts: Account[]) => void): this;
|
|
32
|
-
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
33
|
-
off(event: 'connect', listener: (accounts: Account[]) => void): this;
|
|
34
|
-
off(event: 'disconnect', listener: () => void): this;
|
|
35
|
-
off(event: 'accountsChanged', listener: (accounts: Account[]) => void): this;
|
|
36
|
-
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
37
|
-
}
|
|
38
|
-
interface WalletConnectConnectorOptions {
|
|
39
|
-
id?: string;
|
|
40
|
-
name?: string;
|
|
41
|
-
icon?: string;
|
|
42
|
-
projectId: string;
|
|
43
|
-
relayUrl?: string;
|
|
44
|
-
metadata?: Metadata;
|
|
45
|
-
links?: ConnectorLinks;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* base connector abstract class
|
|
50
|
-
* defines the basic properties and methods that all wallet connectors should have.
|
|
51
|
-
*/
|
|
52
|
-
declare abstract class BaseConnector extends EventEmitter {
|
|
53
|
-
/**
|
|
54
|
-
* the unique identifier of the connector (e.g., 'polkadot-js', 'subwallet-js')
|
|
55
|
-
* subclasses must implement.
|
|
56
|
-
*/
|
|
57
|
-
abstract readonly id: string;
|
|
58
|
-
/**
|
|
59
|
-
* user-friendly connector name (e.g., 'Polkadot{.js}', 'SubWallet')
|
|
60
|
-
* subclasses must implement.
|
|
61
|
-
*/
|
|
62
|
-
abstract readonly name: string;
|
|
63
|
-
/**
|
|
64
|
-
* connector icon URL (optional)
|
|
65
|
-
* subclasses can implement.
|
|
66
|
-
*/
|
|
67
|
-
abstract readonly icon?: string;
|
|
68
|
-
readonly links: ConnectorLinks;
|
|
69
|
-
/**
|
|
70
|
-
* store the current connected accounts.
|
|
71
|
-
* subclasses are responsible for maintaining this list when connecting and updating accounts.
|
|
72
|
-
*/
|
|
73
|
-
protected accounts: Account[];
|
|
74
|
-
/**
|
|
75
|
-
* store the signer.
|
|
76
|
-
* subclasses are responsible for getting and storing it when connecting.
|
|
77
|
-
*/
|
|
78
|
-
protected signer: Signer | undefined;
|
|
79
|
-
protected connectionUri: string | undefined;
|
|
80
|
-
constructor();
|
|
81
|
-
abstract isAvailable(): Promise<boolean>;
|
|
82
|
-
abstract isInstalled(): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* connect to the wallet, get the initial accounts and signer, and set the necessary event listeners.
|
|
85
|
-
* subclasses must implement:
|
|
86
|
-
* 1. get the signer and assign it to this.signer.
|
|
87
|
-
* 2. get the initial accounts list and assign it to this.accounts.
|
|
88
|
-
* 3. set the account update mechanism of itself (e.g., use web3AccountsSubscribe or WalletConnect events).
|
|
89
|
-
* 4. update this.accounts when the account list changes and trigger the 'accountsChanged' event.
|
|
90
|
-
* 5. (optional) trigger the 'connect' event.
|
|
91
|
-
* @returns the initial available accounts list
|
|
92
|
-
*/
|
|
93
|
-
abstract connect(appName: string, chains?: Chain[], targetChainId?: string): Promise<Array<Account>>;
|
|
94
|
-
/**
|
|
95
|
-
* disconnect from the wallet.
|
|
96
|
-
* subclasses must implement this method to perform specific cleanup logic
|
|
97
|
-
* (e.g., unsubscribe, close session).
|
|
98
|
-
* implementers should clear this.accounts and this.signer after cleanup and trigger the 'disconnect' event.
|
|
99
|
-
*/
|
|
100
|
-
abstract disconnect(): Promise<void>;
|
|
101
|
-
/**
|
|
102
|
-
* get the current connected accounts list.
|
|
103
|
-
* @returns the current available accounts list
|
|
104
|
-
*/
|
|
105
|
-
getAccounts(): Promise<Array<Account>>;
|
|
106
|
-
/**
|
|
107
|
-
* get the cached signer object.
|
|
108
|
-
* @returns the signer object, or undefined if the connection is not successful or cannot be obtained.
|
|
109
|
-
*/
|
|
110
|
-
getSigner(): Promise<Signer | undefined>;
|
|
111
|
-
/**
|
|
112
|
-
* sign a message with the specified account.
|
|
113
|
-
*/
|
|
114
|
-
abstract signMessage(message: string, address: string, chainId?: string): Promise<string | undefined>;
|
|
115
|
-
hasConnectionUri(): boolean;
|
|
116
|
-
getConnectionUri(): Promise<string | undefined>;
|
|
117
|
-
updateAccountsForChain(chainId: string): Promise<Account[]>;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
interface CommonConnectorOptions {
|
|
121
|
-
id: string;
|
|
122
|
-
name: string;
|
|
123
|
-
icon: string;
|
|
124
|
-
links: ConnectorLinks;
|
|
125
|
-
injectorId?: string;
|
|
126
|
-
}
|
|
127
|
-
declare class CommonConnector extends BaseConnector {
|
|
128
|
-
readonly id: string;
|
|
129
|
-
readonly name: string;
|
|
130
|
-
readonly icon: string;
|
|
131
|
-
readonly links: ConnectorLinks;
|
|
132
|
-
protected readonly injectorId: string;
|
|
133
|
-
private unsubscribe;
|
|
134
|
-
private specificInjector?;
|
|
135
|
-
constructor(options: CommonConnectorOptions);
|
|
136
|
-
isInstalled(): boolean;
|
|
137
|
-
isAvailable(): Promise<boolean>;
|
|
138
|
-
connect(appName: string): Promise<Array<Account>>;
|
|
139
|
-
disconnect(): Promise<void>;
|
|
140
|
-
signMessage(message: string, address: string): Promise<string | undefined>;
|
|
141
|
-
private startSubscription;
|
|
142
|
-
private cleanupSubscription;
|
|
143
|
-
private cleanup;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
declare const polkadotjsConnector: () => CommonConnector;
|
|
147
|
-
|
|
148
|
-
declare const polkagateConnector: () => CommonConnector;
|
|
149
|
-
|
|
150
|
-
declare const subwalletConnector: () => CommonConnector;
|
|
151
|
-
|
|
152
|
-
declare const talismanConnector: () => CommonConnector;
|
|
153
|
-
|
|
154
|
-
declare class WalletConnectConnector extends BaseConnector {
|
|
155
|
-
readonly id: string;
|
|
156
|
-
readonly name: string;
|
|
157
|
-
readonly icon: string;
|
|
158
|
-
readonly links: ConnectorLinks;
|
|
159
|
-
private provider?;
|
|
160
|
-
private projectId;
|
|
161
|
-
private relayUrl;
|
|
162
|
-
private metadata?;
|
|
163
|
-
private session?;
|
|
164
|
-
private connectedChains?;
|
|
165
|
-
private unsubscribe;
|
|
166
|
-
constructor(options: WalletConnectConnectorOptions);
|
|
167
|
-
isInstalled(): boolean;
|
|
168
|
-
isAvailable(): Promise<boolean>;
|
|
169
|
-
private convertChainIdToCaipId;
|
|
170
|
-
connect(appName: string, chains?: Chain[], targetChainId?: string): Promise<Array<Account>>;
|
|
171
|
-
private getAccountsFromSession;
|
|
172
|
-
disconnect(): Promise<void>;
|
|
173
|
-
signMessage(message: string, address: string, chainId?: string): Promise<string | undefined>;
|
|
174
|
-
hasConnectionUri(): boolean;
|
|
175
|
-
getConnectionUri(): Promise<string>;
|
|
176
|
-
updateAccountsForChain(chainId: string): Promise<Account[]>;
|
|
177
|
-
getSigner(): Promise<Signer | undefined>;
|
|
178
|
-
private startSubscription;
|
|
179
|
-
private cleanupSubscription;
|
|
180
|
-
private cleanup;
|
|
181
|
-
}
|
|
182
|
-
declare const walletConnectConnector: (options: WalletConnectConnectorOptions) => WalletConnectConnector;
|
|
183
|
-
|
|
184
|
-
declare class NovaMobileConnector extends CommonConnector {
|
|
185
|
-
constructor();
|
|
186
|
-
isInstalled(): boolean;
|
|
187
|
-
isAvailable(): Promise<boolean>;
|
|
188
|
-
}
|
|
189
|
-
declare const novaMobileConnector: () => NovaMobileConnector;
|
|
190
|
-
|
|
191
|
-
type WalletConnectConfig = {
|
|
192
|
-
projectId: string;
|
|
193
|
-
relayUrl?: string;
|
|
194
|
-
metadata?: Metadata;
|
|
195
|
-
};
|
|
196
|
-
type MobileOnlyConfig = {
|
|
197
|
-
mobileOnly: true;
|
|
198
|
-
};
|
|
199
|
-
type NovaConnectorConfig = WalletConnectConfig | MobileOnlyConfig;
|
|
200
|
-
declare const novaConnector: (config: NovaConnectorConfig) => WalletConnectConnector | NovaMobileConnector;
|
|
201
|
-
|
|
202
|
-
export { BaseConnector as B, type Connector as C, type Signer as S, type WalletConnectConnectorOptions as W, type ConnectorLinks as a, CommonConnector as b, polkagateConnector as c, novaMobileConnector as d, novaConnector as n, polkadotjsConnector as p, subwalletConnector as s, talismanConnector as t, walletConnectConnector as w };
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { C as Chain } from './chain-9vBVQoCB.cjs';
|
|
2
|
-
import { A as Account } from './account-DElDu01m.cjs';
|
|
3
|
-
import { EventEmitter } from 'eventemitter3';
|
|
4
|
-
import { InjectedSigner } from 'dedot/types';
|
|
5
|
-
import { Metadata } from '@walletconnect/universal-provider';
|
|
6
|
-
|
|
7
|
-
interface Signer extends InjectedSigner {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface ConnectorLinks {
|
|
11
|
-
browserExtension?: string;
|
|
12
|
-
deepLink?: string;
|
|
13
|
-
}
|
|
14
|
-
interface Connector extends EventEmitter {
|
|
15
|
-
readonly id: string;
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly icon: string;
|
|
18
|
-
readonly links: ConnectorLinks;
|
|
19
|
-
isAvailable(): Promise<boolean>;
|
|
20
|
-
isInstalled: () => boolean;
|
|
21
|
-
connect(appName: string, chains?: Chain[], targetChainId?: string): Promise<Array<Account>>;
|
|
22
|
-
disconnect(): Promise<void>;
|
|
23
|
-
getAccounts(): Promise<Array<Account>>;
|
|
24
|
-
getSigner(): Promise<Signer | undefined>;
|
|
25
|
-
signMessage(message: string, address: string, chainId?: string): Promise<string | undefined>;
|
|
26
|
-
hasConnectionUri(): boolean;
|
|
27
|
-
getConnectionUri(): Promise<string | undefined>;
|
|
28
|
-
updateAccountsForChain(chainId: string): Promise<Account[]>;
|
|
29
|
-
on(event: 'connect', listener: (accounts: Account[]) => void): this;
|
|
30
|
-
on(event: 'disconnect', listener: () => void): this;
|
|
31
|
-
on(event: 'accountsChanged', listener: (accounts: Account[]) => void): this;
|
|
32
|
-
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
33
|
-
off(event: 'connect', listener: (accounts: Account[]) => void): this;
|
|
34
|
-
off(event: 'disconnect', listener: () => void): this;
|
|
35
|
-
off(event: 'accountsChanged', listener: (accounts: Account[]) => void): this;
|
|
36
|
-
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
37
|
-
}
|
|
38
|
-
interface WalletConnectConnectorOptions {
|
|
39
|
-
id?: string;
|
|
40
|
-
name?: string;
|
|
41
|
-
icon?: string;
|
|
42
|
-
projectId: string;
|
|
43
|
-
relayUrl?: string;
|
|
44
|
-
metadata?: Metadata;
|
|
45
|
-
links?: ConnectorLinks;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* base connector abstract class
|
|
50
|
-
* defines the basic properties and methods that all wallet connectors should have.
|
|
51
|
-
*/
|
|
52
|
-
declare abstract class BaseConnector extends EventEmitter {
|
|
53
|
-
/**
|
|
54
|
-
* the unique identifier of the connector (e.g., 'polkadot-js', 'subwallet-js')
|
|
55
|
-
* subclasses must implement.
|
|
56
|
-
*/
|
|
57
|
-
abstract readonly id: string;
|
|
58
|
-
/**
|
|
59
|
-
* user-friendly connector name (e.g., 'Polkadot{.js}', 'SubWallet')
|
|
60
|
-
* subclasses must implement.
|
|
61
|
-
*/
|
|
62
|
-
abstract readonly name: string;
|
|
63
|
-
/**
|
|
64
|
-
* connector icon URL (optional)
|
|
65
|
-
* subclasses can implement.
|
|
66
|
-
*/
|
|
67
|
-
abstract readonly icon?: string;
|
|
68
|
-
readonly links: ConnectorLinks;
|
|
69
|
-
/**
|
|
70
|
-
* store the current connected accounts.
|
|
71
|
-
* subclasses are responsible for maintaining this list when connecting and updating accounts.
|
|
72
|
-
*/
|
|
73
|
-
protected accounts: Account[];
|
|
74
|
-
/**
|
|
75
|
-
* store the signer.
|
|
76
|
-
* subclasses are responsible for getting and storing it when connecting.
|
|
77
|
-
*/
|
|
78
|
-
protected signer: Signer | undefined;
|
|
79
|
-
protected connectionUri: string | undefined;
|
|
80
|
-
constructor();
|
|
81
|
-
abstract isAvailable(): Promise<boolean>;
|
|
82
|
-
abstract isInstalled(): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* connect to the wallet, get the initial accounts and signer, and set the necessary event listeners.
|
|
85
|
-
* subclasses must implement:
|
|
86
|
-
* 1. get the signer and assign it to this.signer.
|
|
87
|
-
* 2. get the initial accounts list and assign it to this.accounts.
|
|
88
|
-
* 3. set the account update mechanism of itself (e.g., use web3AccountsSubscribe or WalletConnect events).
|
|
89
|
-
* 4. update this.accounts when the account list changes and trigger the 'accountsChanged' event.
|
|
90
|
-
* 5. (optional) trigger the 'connect' event.
|
|
91
|
-
* @returns the initial available accounts list
|
|
92
|
-
*/
|
|
93
|
-
abstract connect(appName: string, chains?: Chain[], targetChainId?: string): Promise<Array<Account>>;
|
|
94
|
-
/**
|
|
95
|
-
* disconnect from the wallet.
|
|
96
|
-
* subclasses must implement this method to perform specific cleanup logic
|
|
97
|
-
* (e.g., unsubscribe, close session).
|
|
98
|
-
* implementers should clear this.accounts and this.signer after cleanup and trigger the 'disconnect' event.
|
|
99
|
-
*/
|
|
100
|
-
abstract disconnect(): Promise<void>;
|
|
101
|
-
/**
|
|
102
|
-
* get the current connected accounts list.
|
|
103
|
-
* @returns the current available accounts list
|
|
104
|
-
*/
|
|
105
|
-
getAccounts(): Promise<Array<Account>>;
|
|
106
|
-
/**
|
|
107
|
-
* get the cached signer object.
|
|
108
|
-
* @returns the signer object, or undefined if the connection is not successful or cannot be obtained.
|
|
109
|
-
*/
|
|
110
|
-
getSigner(): Promise<Signer | undefined>;
|
|
111
|
-
/**
|
|
112
|
-
* sign a message with the specified account.
|
|
113
|
-
*/
|
|
114
|
-
abstract signMessage(message: string, address: string, chainId?: string): Promise<string | undefined>;
|
|
115
|
-
hasConnectionUri(): boolean;
|
|
116
|
-
getConnectionUri(): Promise<string | undefined>;
|
|
117
|
-
updateAccountsForChain(chainId: string): Promise<Account[]>;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
interface CommonConnectorOptions {
|
|
121
|
-
id: string;
|
|
122
|
-
name: string;
|
|
123
|
-
icon: string;
|
|
124
|
-
links: ConnectorLinks;
|
|
125
|
-
injectorId?: string;
|
|
126
|
-
}
|
|
127
|
-
declare class CommonConnector extends BaseConnector {
|
|
128
|
-
readonly id: string;
|
|
129
|
-
readonly name: string;
|
|
130
|
-
readonly icon: string;
|
|
131
|
-
readonly links: ConnectorLinks;
|
|
132
|
-
protected readonly injectorId: string;
|
|
133
|
-
private unsubscribe;
|
|
134
|
-
private specificInjector?;
|
|
135
|
-
constructor(options: CommonConnectorOptions);
|
|
136
|
-
isInstalled(): boolean;
|
|
137
|
-
isAvailable(): Promise<boolean>;
|
|
138
|
-
connect(appName: string): Promise<Array<Account>>;
|
|
139
|
-
disconnect(): Promise<void>;
|
|
140
|
-
signMessage(message: string, address: string): Promise<string | undefined>;
|
|
141
|
-
private startSubscription;
|
|
142
|
-
private cleanupSubscription;
|
|
143
|
-
private cleanup;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
declare const polkadotjsConnector: () => CommonConnector;
|
|
147
|
-
|
|
148
|
-
declare const polkagateConnector: () => CommonConnector;
|
|
149
|
-
|
|
150
|
-
declare const subwalletConnector: () => CommonConnector;
|
|
151
|
-
|
|
152
|
-
declare const talismanConnector: () => CommonConnector;
|
|
153
|
-
|
|
154
|
-
declare class WalletConnectConnector extends BaseConnector {
|
|
155
|
-
readonly id: string;
|
|
156
|
-
readonly name: string;
|
|
157
|
-
readonly icon: string;
|
|
158
|
-
readonly links: ConnectorLinks;
|
|
159
|
-
private provider?;
|
|
160
|
-
private projectId;
|
|
161
|
-
private relayUrl;
|
|
162
|
-
private metadata?;
|
|
163
|
-
private session?;
|
|
164
|
-
private connectedChains?;
|
|
165
|
-
private unsubscribe;
|
|
166
|
-
constructor(options: WalletConnectConnectorOptions);
|
|
167
|
-
isInstalled(): boolean;
|
|
168
|
-
isAvailable(): Promise<boolean>;
|
|
169
|
-
private convertChainIdToCaipId;
|
|
170
|
-
connect(appName: string, chains?: Chain[], targetChainId?: string): Promise<Array<Account>>;
|
|
171
|
-
private getAccountsFromSession;
|
|
172
|
-
disconnect(): Promise<void>;
|
|
173
|
-
signMessage(message: string, address: string, chainId?: string): Promise<string | undefined>;
|
|
174
|
-
hasConnectionUri(): boolean;
|
|
175
|
-
getConnectionUri(): Promise<string>;
|
|
176
|
-
updateAccountsForChain(chainId: string): Promise<Account[]>;
|
|
177
|
-
getSigner(): Promise<Signer | undefined>;
|
|
178
|
-
private startSubscription;
|
|
179
|
-
private cleanupSubscription;
|
|
180
|
-
private cleanup;
|
|
181
|
-
}
|
|
182
|
-
declare const walletConnectConnector: (options: WalletConnectConnectorOptions) => WalletConnectConnector;
|
|
183
|
-
|
|
184
|
-
declare class NovaMobileConnector extends CommonConnector {
|
|
185
|
-
constructor();
|
|
186
|
-
isInstalled(): boolean;
|
|
187
|
-
isAvailable(): Promise<boolean>;
|
|
188
|
-
}
|
|
189
|
-
declare const novaMobileConnector: () => NovaMobileConnector;
|
|
190
|
-
|
|
191
|
-
type WalletConnectConfig = {
|
|
192
|
-
projectId: string;
|
|
193
|
-
relayUrl?: string;
|
|
194
|
-
metadata?: Metadata;
|
|
195
|
-
};
|
|
196
|
-
type MobileOnlyConfig = {
|
|
197
|
-
mobileOnly: true;
|
|
198
|
-
};
|
|
199
|
-
type NovaConnectorConfig = WalletConnectConfig | MobileOnlyConfig;
|
|
200
|
-
declare const novaConnector: (config: NovaConnectorConfig) => WalletConnectConnector | NovaMobileConnector;
|
|
201
|
-
|
|
202
|
-
export { BaseConnector as B, type Connector as C, type Signer as S, type WalletConnectConnectorOptions as W, type ConnectorLinks as a, CommonConnector as b, polkagateConnector as c, novaMobileConnector as d, novaConnector as n, polkadotjsConnector as p, subwalletConnector as s, talismanConnector as t, walletConnectConnector as w };
|