genlayer-js 0.4.5 → 0.4.7

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.4.7 (2024-12-03)
4
+
5
+ ## 0.4.6 (2024-12-02)
6
+
3
7
  ## 0.4.5 (2024-12-02)
4
8
 
5
9
 
package/dist/index.cjs CHANGED
@@ -291,7 +291,7 @@ async function sleep(ms) {
291
291
  var transactionActions = (client) => ({
292
292
  waitForTransactionReceipt: async ({
293
293
  hash,
294
- status = "FINALIZED" /* FINALIZED */,
294
+ status = "ACCEPTED" /* ACCEPTED */,
295
295
  interval = transactionsConfig.waitInterval,
296
296
  retries = transactionsConfig.retries
297
297
  }) => {
package/dist/index.js CHANGED
@@ -291,7 +291,7 @@ async function sleep(ms) {
291
291
  var transactionActions = (client) => ({
292
292
  waitForTransactionReceipt: async ({
293
293
  hash,
294
- status = "FINALIZED" /* FINALIZED */,
294
+ status = "ACCEPTED" /* ACCEPTED */,
295
295
  interval = transactionsConfig.waitInterval,
296
296
  retries = transactionsConfig.retries
297
297
  }) => {
@@ -138,13 +138,13 @@ type GenLayerClient<TSimulatorChain extends SimulatorChain> = Omit<Client<Transp
138
138
  functionName: string;
139
139
  args: CalldataEncodable[];
140
140
  value: bigint;
141
- leader_only?: boolean;
141
+ leaderOnly?: boolean;
142
142
  }) => Promise<any>;
143
143
  deployContract: (args: {
144
144
  account?: Account;
145
145
  code: string;
146
146
  args: CalldataEncodable[];
147
- leader_only?: boolean;
147
+ leaderOnly?: boolean;
148
148
  }) => Promise<`0x${string}`>;
149
149
  getTransaction: (args: {
150
150
  hash: TransactionHash;
@@ -138,13 +138,13 @@ type GenLayerClient<TSimulatorChain extends SimulatorChain> = Omit<Client<Transp
138
138
  functionName: string;
139
139
  args: CalldataEncodable[];
140
140
  value: bigint;
141
- leader_only?: boolean;
141
+ leaderOnly?: boolean;
142
142
  }) => Promise<any>;
143
143
  deployContract: (args: {
144
144
  account?: Account;
145
145
  code: string;
146
146
  args: CalldataEncodable[];
147
- leader_only?: boolean;
147
+ leaderOnly?: boolean;
148
148
  }) => Promise<`0x${string}`>;
149
149
  getTransaction: (args: {
150
150
  hash: TransactionHash;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "genlayer-js",
3
3
  "type": "module",
4
- "version": "0.4.5",
4
+ "version": "0.4.7",
5
5
  "description": "GenLayer JavaScript SDK",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -7,7 +7,7 @@ import {SimulatorChain} from "@/types";
7
7
  export const transactionActions = (client: GenLayerClient<SimulatorChain>) => ({
8
8
  waitForTransactionReceipt: async ({
9
9
  hash,
10
- status = TransactionStatus.FINALIZED,
10
+ status = TransactionStatus.ACCEPTED,
11
11
  interval = transactionsConfig.waitInterval,
12
12
  retries = transactionsConfig.retries,
13
13
  }: {
@@ -46,13 +46,13 @@ export type GenLayerClient<TSimulatorChain extends SimulatorChain> = Omit<
46
46
  functionName: string;
47
47
  args: CalldataEncodable[];
48
48
  value: bigint;
49
- leader_only?: boolean;
49
+ leaderOnly?: boolean;
50
50
  }) => Promise<any>;
51
51
  deployContract: (args: {
52
52
  account?: Account;
53
53
  code: string;
54
54
  args: CalldataEncodable[];
55
- leader_only?: boolean;
55
+ leaderOnly?: boolean;
56
56
  }) => Promise<`0x${string}`>;
57
57
  getTransaction: (args: {hash: TransactionHash}) => Promise<GenLayerTransaction>;
58
58
  getCurrentNonce: (args: {address: string}) => Promise<number>;