@babylonlabs-io/wallet-connector 1.0.13 → 1.0.15
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/README.md +12 -0
- package/dist/core/types.d.ts +10 -0
- package/dist/core/wallets/bbn/okx/provider.d.ts +1 -0
- package/dist/index.cjs.js +11 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +17 -9
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -183,6 +183,12 @@ interface IBTCProvider extends IProvider {
|
|
|
183
183
|
* @returns A promise that resolves to the icon of the wallet provider.
|
|
184
184
|
*/
|
|
185
185
|
getWalletProviderIcon(): Promise<string>;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Gets the version of the wallet provider.
|
|
189
|
+
* @returns A promise that resolves to the version of the wallet provider.
|
|
190
|
+
*/
|
|
191
|
+
getVersion?(): Promise<string>;
|
|
186
192
|
}
|
|
187
193
|
```
|
|
188
194
|
|
|
@@ -235,6 +241,12 @@ export interface IBBNProvider extends IProvider {
|
|
|
235
241
|
* @param callBack - The callback function to be executed when the event occurs.
|
|
236
242
|
*/
|
|
237
243
|
off(eventName: string, callBack: () => void): void;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Gets the version of the wallet provider.
|
|
247
|
+
* @returns A promise that resolves to the version of the wallet provider.
|
|
248
|
+
*/
|
|
249
|
+
getVersion?(): Promise<string>;
|
|
238
250
|
}
|
|
239
251
|
```
|
|
240
252
|
|
package/dist/core/types.d.ts
CHANGED
|
@@ -170,6 +170,11 @@ export interface IBTCProvider extends IProvider {
|
|
|
170
170
|
* @returns A promise that resolves to the icon of the wallet provider.
|
|
171
171
|
*/
|
|
172
172
|
getWalletProviderIcon(): Promise<string>;
|
|
173
|
+
/**
|
|
174
|
+
* Gets the version of the wallet provider.
|
|
175
|
+
* @returns A promise that resolves to the version of the wallet provider.
|
|
176
|
+
*/
|
|
177
|
+
getVersion?(): Promise<string>;
|
|
173
178
|
}
|
|
174
179
|
export interface IBBNProvider extends IProvider {
|
|
175
180
|
/**
|
|
@@ -212,6 +217,11 @@ export interface IBBNProvider extends IProvider {
|
|
|
212
217
|
* @param callBack - The callback function to be executed when the event occurs.
|
|
213
218
|
*/
|
|
214
219
|
off(eventName: string, callBack: () => void): void;
|
|
220
|
+
/**
|
|
221
|
+
* Gets the version of the wallet provider.
|
|
222
|
+
* @returns A promise that resolves to the version of the wallet provider.
|
|
223
|
+
*/
|
|
224
|
+
getVersion?(): Promise<string>;
|
|
215
225
|
}
|
|
216
226
|
export interface HashMap {
|
|
217
227
|
get: (key: string) => string | undefined;
|
|
@@ -17,4 +17,5 @@ export declare class OKXBabylonProvider implements IBBNProvider {
|
|
|
17
17
|
getOfflineSignerAuto(): Promise<OfflineAminoSigner | OfflineDirectSigner>;
|
|
18
18
|
on: (eventName: string, callBack: () => void) => void;
|
|
19
19
|
off: (eventName: string, callBack: () => void) => void;
|
|
20
|
+
getVersion(): Promise<string>;
|
|
20
21
|
}
|