suidouble 0.0.24 → 0.0.25
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/lib/SuiInBrowser.js +4 -0
- package/lib/SuiInBrowserAdapter.js +18 -5
- package/package.json +1 -1
package/lib/SuiInBrowser.js
CHANGED
|
@@ -30,6 +30,24 @@ class SuiInBrowserAdapter extends SuiCommonMethods {
|
|
|
30
30
|
this._isConnected = false;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
async signAndExecuteTransactionBlock(params) {
|
|
34
|
+
return await this.getFeature(Feature.SUI_SIGN_AND_EXECUTE_TX_BLOCK).signAndExecuteTransactionBlock(params);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
async signTransactionBlock(params) {
|
|
38
|
+
return await this.getFeature(Feature.SUI_SIGN_TX_BLOCK).signTransactionBlock(params);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async signMessage(params) {
|
|
42
|
+
return await this.getFeature(Feature.SUI_SIGN_MESSAGE).signMessage(params);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
async disconnect(params) {
|
|
46
|
+
const res = await this.getFeature(Feature.DISCONNECT).disconnect(params);
|
|
47
|
+
this.connectionUpdated();
|
|
48
|
+
return res;
|
|
49
|
+
}
|
|
50
|
+
|
|
33
51
|
getDownloadURL() {
|
|
34
52
|
if (this._downloadUrls && this._downloadUrls.chrome) {
|
|
35
53
|
return this._downloadUrls.chrome;
|
|
@@ -112,11 +130,6 @@ class SuiInBrowserAdapter extends SuiCommonMethods {
|
|
|
112
130
|
this.connectionUpdated();
|
|
113
131
|
}
|
|
114
132
|
|
|
115
|
-
async signAndExecuteTransactionBlock(params) {
|
|
116
|
-
return await this.getFeature(Feature.SUI_SIGN_AND_EXECUTE_TX_BLOCK).signAndExecuteTransactionBlock(params);
|
|
117
|
-
// console.log(this.getFeature(Feature.SUI_SIGN_AND_EXECUTE_TX_BLOCK));
|
|
118
|
-
}
|
|
119
|
-
|
|
120
133
|
get okForSui() {
|
|
121
134
|
if (!this.isInstalled) {
|
|
122
135
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suidouble",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"description": "Set of provider, package and object classes for javascript representation of Sui Move smart contracts. Use same code for publishing, upgrading, integration testing, interaction with smart contracts and integration in browser web3 dapps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|