@onekeyfe/onekey-stellar-provider 2.2.63 → 2.2.64
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.
|
@@ -120,6 +120,11 @@ export declare class ProviderStellar extends ProviderStellarBase implements IPro
|
|
|
120
120
|
* Get the address from the wallet
|
|
121
121
|
*/
|
|
122
122
|
getAddress(params?: GetAddressParams): Promise<GetAddressResult>;
|
|
123
|
+
/**
|
|
124
|
+
* Get the public key of the current account
|
|
125
|
+
* @returns Promise<string> - The public key/address
|
|
126
|
+
*/
|
|
127
|
+
getPublicKey(): Promise<string>;
|
|
123
128
|
/**
|
|
124
129
|
* Sign a transaction
|
|
125
130
|
*/
|
|
@@ -100,6 +100,15 @@ export class ProviderStellar extends ProviderStellarBase {
|
|
|
100
100
|
return result;
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
+
/**
|
|
104
|
+
* Get the public key of the current account
|
|
105
|
+
* @returns Promise<string> - The public key/address
|
|
106
|
+
*/
|
|
107
|
+
getPublicKey() {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return this.getAddress().then((t) => t.address);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
103
112
|
/**
|
|
104
113
|
* Sign a transaction
|
|
105
114
|
*/
|
|
@@ -103,6 +103,15 @@ class ProviderStellar extends ProviderStellarBase_1.ProviderStellarBase {
|
|
|
103
103
|
return result;
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Get the public key of the current account
|
|
108
|
+
* @returns Promise<string> - The public key/address
|
|
109
|
+
*/
|
|
110
|
+
getPublicKey() {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
return this.getAddress().then((t) => t.address);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
106
115
|
/**
|
|
107
116
|
* Sign a transaction
|
|
108
117
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/onekey-stellar-provider",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.64",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"cross-inpage-provider"
|
|
6
6
|
],
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"start": "tsc --watch"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@onekeyfe/cross-inpage-provider-core": "2.2.
|
|
31
|
-
"@onekeyfe/cross-inpage-provider-errors": "2.2.
|
|
32
|
-
"@onekeyfe/cross-inpage-provider-types": "2.2.
|
|
33
|
-
"@onekeyfe/extension-bridge-injected": "2.2.
|
|
30
|
+
"@onekeyfe/cross-inpage-provider-core": "2.2.64",
|
|
31
|
+
"@onekeyfe/cross-inpage-provider-errors": "2.2.64",
|
|
32
|
+
"@onekeyfe/cross-inpage-provider-types": "2.2.64",
|
|
33
|
+
"@onekeyfe/extension-bridge-injected": "2.2.64"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "cd536fe06735815d033e51a02e684e3662e6e7b8"
|
|
36
36
|
}
|