suidouble 1.15.1 → 1.20.0-1

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/SuiMaster.js CHANGED
@@ -162,6 +162,13 @@ export default class SuiMaster extends SuiCommonMethods {
162
162
  get SuiEvent() {
163
163
  return SuiEvent;
164
164
  }
165
+ /**
166
+ * Referencing it here to get rid of circullar dependency. So you can always call SuiPaginatedResponse contructor if you have instance of SuiMaster
167
+ */
168
+ get SuiPaginatedResponse() {
169
+ return SuiPaginatedResponse;
170
+ }
171
+ /**
165
172
 
166
173
  /**
167
174
  * Storage storing all objects interacted by this suiMaster
@@ -310,6 +317,11 @@ export default class SuiMaster extends SuiCommonMethods {
310
317
  }
311
318
 
312
319
  async signAndExecuteTransaction(params) {
320
+ if (!params.chain) {
321
+ const chainId = 'sui:'+(this._providerName.split('sui:').join('').toLowerCase());
322
+ params.chain = chainId;
323
+ }
324
+
313
325
  let txResults = null;
314
326
  if (this._keypair) {
315
327
  params.signer = this._keypair;
@@ -406,7 +418,7 @@ export default class SuiMaster extends SuiCommonMethods {
406
418
  }
407
419
 
408
420
  async fetchTransactions(params = {}) {
409
- const filter = {};
421
+ let filter = {};
410
422
  if (params.fromAddress) {
411
423
  filter.FromAddress = params.fromAddress;
412
424
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suidouble",
3
- "version": "1.15.1",
3
+ "version": "1.20.0-1",
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
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "author": "suidouble (https://github.com/suidouble)",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@mysten/sui": "^1.15.1",
25
+ "@mysten/sui": "^1.20.0",
26
26
  "@polymedia/coinmeta": "^0.0.17",
27
27
  "@wallet-standard/core": "^1.0.3",
28
28
  "websocket": "^1.0.35"
@@ -1,26 +1,26 @@
1
1
  # @generated by Move, please check-in and do not edit manually.
2
2
 
3
3
  [move]
4
- version = 2
4
+ version = 3
5
5
  manifest_digest = "782E5DC5571D50504E8D0062C1C45607FF5A73378BE161077BCEF58ADEC1A3F5"
6
6
  deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
7
7
  dependencies = [
8
- { name = "Sui" },
8
+ { id = "Sui", name = "Sui" },
9
9
  ]
10
10
 
11
11
  [[move.package]]
12
- name = "MoveStdlib"
12
+ id = "MoveStdlib"
13
13
  source = { git = "https://github.com/MystenLabs/sui.git", rev = "testnet", subdir = "crates/sui-framework/packages/move-stdlib" }
14
14
 
15
15
  [[move.package]]
16
- name = "Sui"
16
+ id = "Sui"
17
17
  source = { git = "https://github.com/MystenLabs/sui.git", rev = "testnet", subdir = "crates/sui-framework/packages/sui-framework" }
18
18
 
19
19
  dependencies = [
20
- { name = "MoveStdlib" },
20
+ { id = "MoveStdlib", name = "MoveStdlib" },
21
21
  ]
22
22
 
23
23
  [move.toolchain-version]
24
- compiler-version = "1.30.1"
24
+ compiler-version = "1.40.3"
25
25
  edition = "2024.beta"
26
26
  flavor = "sui"
@@ -1,27 +1,27 @@
1
1
  # @generated by Move, please check-in and do not edit manually.
2
2
 
3
3
  [move]
4
- version = 0
4
+ version = 3
5
5
  manifest_digest = "F8C73BB1CA5B2EEF078E6FD0C793EF387322A4AD49DECCFE6AAD9F5F81C198C8"
6
6
  deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
7
7
 
8
8
  dependencies = [
9
- { name = "Sui" },
9
+ { id = "Sui", name = "Sui" },
10
10
  ]
11
11
 
12
12
  [[move.package]]
13
- name = "MoveStdlib"
13
+ id = "MoveStdlib"
14
14
  source = { git = "https://github.com/MystenLabs/sui.git", rev = "testnet", subdir = "crates/sui-framework/packages/move-stdlib" }
15
15
 
16
16
  [[move.package]]
17
- name = "Sui"
17
+ id = "Sui"
18
18
  source = { git = "https://github.com/MystenLabs/sui.git", rev = "testnet", subdir = "crates/sui-framework/packages/sui-framework" }
19
19
 
20
20
  dependencies = [
21
- { name = "MoveStdlib" },
21
+ { id = "MoveStdlib", name = "MoveStdlib" },
22
22
  ]
23
23
 
24
24
  [move.toolchain-version]
25
- compiler-version = "1.30.1"
26
- edition = "2024.beta"
25
+ compiler-version = "1.40.3"
26
+ edition = "2024"
27
27
  flavor = "sui"