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.
@@ -29,6 +29,10 @@ class SuiInBrowser extends SuiCommonMethods {
29
29
  }, 50);
30
30
  }
31
31
 
32
+ activeAdapter() {
33
+ return this._activeAdapter;
34
+ }
35
+
32
36
  getAddress() {
33
37
  return this._connectedAddress;
34
38
  }
@@ -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.24",
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": {