suidouble 0.0.4 → 0.0.6

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 CHANGED
@@ -66,7 +66,7 @@ suiInBrowser.addEventListener('connected', async()=>{
66
66
  suiInBrowser.connect(adapter);
67
67
  ```
68
68
 
69
- Take a look at more detailed [web3 connect code](#sui-move-connect-in-browser)
69
+ Take a look at more detailed [web3 connect code](#sui-move-connect-in-browser), sample application [source code](https://github.com/suidouble/suidouble-sample-app) or [check it online](https://suidouble-sample-app.herokuapp.com/).
70
70
 
71
71
  #### attaching a package
72
72
 
package/lib/SuiMaster.js CHANGED
@@ -42,6 +42,11 @@ class SuiMaster extends SuiCommonMethods {
42
42
  } else if (params.provider == 'dev' || params.provider == 'devnet') {
43
43
  this._provider = new sui.JsonRpcProvider(sui.devnetConnection);
44
44
  this._providerName = 'dev';
45
+ } else if (params.provider == 'main' || params.provider == 'mainnet') {
46
+ this._provider = new sui.JsonRpcProvider(sui.mainnetConnection);
47
+ this._providerName = 'main';
48
+
49
+ this.log('we are on the mainnet, working with real money, be careful');
45
50
  } else {
46
51
  if (params.provider && params.provider.connection && params.provider.connection.fullnode) {
47
52
  this._provider = params.provider;
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "suidouble",
3
- "version": "0.0.4",
4
- "description": "",
3
+ "version": "0.0.6",
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": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
- "author": "",
9
+ "keywords": ["sui", "sui move", "move", "smart contract", "smart contracts", "sui.js", "web3", "dapps", "dapp"],
10
+ "author": "Jeka Kiselyov <jeka911@gmail.com> (https://github.com/jeka-kiselyov)",
10
11
  "license": "Apache-2.0",
11
12
  "dependencies": {
12
13
  "@mysten/sui.js": "^0.34.0",