genlayer-js 0.4.2 → 0.4.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,12 @@
1
1
 
2
2
 
3
+ ## 0.4.3 (2024-11-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * readContract return type ([#32](https://github.com/yeagerai/genlayer-js/issues/32)) ([8222453](https://github.com/yeagerai/genlayer-js/commit/82224530cf5c28b17b43943fad92cd5782ecf1be))
9
+
3
10
  ## 0.4.2 (2024-11-22)
4
11
 
5
12
 
@@ -122,7 +122,7 @@ type GenLayerClient<TSimulatorChain extends SimulatorChain> = Omit<Client<Transp
122
122
  address: Address$1;
123
123
  functionName: string;
124
124
  args: CalldataEncodable[];
125
- }) => Promise<`0x${string}`>;
125
+ }) => Promise<unknown>;
126
126
  writeContract: (args: {
127
127
  account?: Account;
128
128
  address: Address$1;
@@ -122,7 +122,7 @@ type GenLayerClient<TSimulatorChain extends SimulatorChain> = Omit<Client<Transp
122
122
  address: Address$1;
123
123
  functionName: string;
124
124
  args: CalldataEncodable[];
125
- }) => Promise<`0x${string}`>;
125
+ }) => Promise<unknown>;
126
126
  writeContract: (args: {
127
127
  account?: Account;
128
128
  address: Address$1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.4.3",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@ export const overrideContractActions = (client: GenLayerClient<SimulatorChain>)
26
26
  address: Address;
27
27
  functionName: string;
28
28
  args: CalldataEncodable[];
29
- }): Promise<any> => {
29
+ }): Promise<unknown> => {
30
30
  const {account, address, functionName, args: params} = args;
31
31
  const encodedData = encodeAndSerialize({method: functionName, args: params});
32
32
 
@@ -39,7 +39,7 @@ export type GenLayerClient<TSimulatorChain extends SimulatorChain> = Omit<
39
39
  address: Address;
40
40
  functionName: string;
41
41
  args: CalldataEncodable[];
42
- }) => Promise<`0x${string}`>;
42
+ }) => Promise<unknown>;
43
43
  writeContract: (args: {
44
44
  account?: Account;
45
45
  address: Address;