genlayer-js 0.18.8 → 0.18.9

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.
@@ -153,6 +153,21 @@ export type DecodedCallData = {
153
153
  type: TransactionType;
154
154
  };
155
155
 
156
+ export interface LeaderReceipt {
157
+ calldata: string;
158
+ class_name: string;
159
+ contract_state: string;
160
+ eq_outputs: Record<string, unknown>;
161
+ error: string | null;
162
+ execution_result: string;
163
+ gas_used: number;
164
+ mode: string;
165
+ node_config: Record<string, unknown>;
166
+ pending_transactions: unknown[];
167
+ vote: string;
168
+ result: string;
169
+ }
170
+
156
171
  // TODO: make localnet compatible with testnet and unify the types
157
172
  export type GenLayerTransaction = {
158
173
  // currentTimestamp: testnet
@@ -243,20 +258,7 @@ export type GenLayerTransaction = {
243
258
  // consensus_data: localnet // leader_receipt: testnet
244
259
  consensus_data?: {
245
260
  final: boolean;
246
- leader_receipt?: {
247
- calldata: string;
248
- class_name: string;
249
- contract_state: string;
250
- eq_outputs: Record<string, unknown>;
251
- error: string | null;
252
- execution_result: string;
253
- gas_used: number;
254
- mode: string;
255
- node_config: Record<string, unknown>;
256
- pending_transactions: unknown[];
257
- vote: string;
258
- result: string;
259
- }[];
261
+ leader_receipt?: LeaderReceipt[];
260
262
  validators?: Record<string, unknown>[];
261
263
  votes?: Record<string, string>;
262
264
  };