genlayer-js 0.1.0 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
 
2
2
 
3
+ ## 0.1.2 (2024-10-03)
4
+
5
+ ## 0.1.1 (2024-10-03)
6
+
3
7
  ## 0.1.0 (2024-10-01)
4
8
 
5
9
 
package/README.md CHANGED
@@ -39,15 +39,14 @@ const transaction = await client.getTransaction({ hash: transactionHash })
39
39
  ### Readding a contract
40
40
  ```typescript
41
41
  import { simulator } from 'genlayer-js/chains';
42
- import { createClient, createAccount } from "genlayer-js";
42
+ import { createClient } from "genlayer-js";
43
43
 
44
- const account = createAccount();
45
44
  const client = createClient({
46
45
  network: simulator,
47
- account: account, // hoist the account to use it on next calls
48
46
  });
49
47
 
50
48
  const result = await client.readContract({
49
+ // account: account, Account is optional when reading from contracts
51
50
  address: contractAddress,
52
51
  functionName: 'get_complete_storage',
53
52
  args: []
@@ -86,7 +85,7 @@ _* under development_
86
85
 
87
86
  ## 📖 Documentation
88
87
 
89
- For detailed information on how to use GenLayerJS SDK, please refer to our [documentation](https://docs.genlayer.io/).
88
+ For detailed information on how to use GenLayerJS SDK, please refer to our [documentation](https://docs.genlayer.com/).
90
89
 
91
90
 
92
91
 
@@ -96,4 +95,4 @@ We welcome contributions to GenLayerJS SDK! Whether it's new features, improved
96
95
 
97
96
  ## License
98
97
 
99
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
98
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",