genlayer-js 0.3.2 → 0.3.3

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,7 @@
1
1
 
2
2
 
3
+ ## 0.3.3 (2024-11-11)
4
+
3
5
  ## 0.3.2 (2024-11-06)
4
6
 
5
7
  ## 0.3.1 (2024-10-28)
package/README.md CHANGED
@@ -30,19 +30,21 @@ import { simulator } from 'genlayer-js/chains';
30
30
  import { createClient } from "genlayer-js";
31
31
 
32
32
  const client = createClient({
33
- network: simulator,
33
+ chain: simulator,
34
34
  });
35
35
 
36
+ const transactionHash = "0x...";
37
+
36
38
  const transaction = await client.getTransaction({ hash: transactionHash })
37
39
  ```
38
40
 
39
- ### Readding a contract
41
+ ### Reading a contract
40
42
  ```typescript
41
43
  import { simulator } from 'genlayer-js/chains';
42
44
  import { createClient } from "genlayer-js";
43
45
 
44
46
  const client = createClient({
45
- network: simulator,
47
+ chain: simulator,
46
48
  });
47
49
 
48
50
  const result = await client.readContract({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "0.3.2",
4
+ "version": "0.3.3",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",